caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "William D. Neumann" <wneumann@cs.unm.edu>
To: Harald Schmidt <anObject@mac.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Problem with network example of Ocaml book
Date: Wed, 16 Nov 2005 08:25:27 -0700 (MST)	[thread overview]
Message-ID: <Pine.LNX.4.62.0511160817190.6079@phobos.cs.unm.edu> (raw)
In-Reply-To: <200511161302.jAGD1rWV009969@mac.com>

On Wed, 16 Nov 2005, Harald Schmidt wrote:

> I worked through the network example (page 629) of the the Ocaml book, and
> don't know what's going wrong with the last statement. I am using Ocaml
> under cygwin / WinXP.
>
> I know, EINVAL means invalid argument, but as far as I read s_descr is used
> as an abstract file descriptor. Is this wrong?

Well, this works fine on my OS X and Linux machines, so I'm guessing that 
it has something to do with cygwin.  Unfortunately I don't know enough 
about it to provide much help...

> By the way: where can I find the domain_of function of page 630. Here is the
> code I used from the book:

Do you mean the one in the "A Generic Server" section (page 632 in my 
copy)?  If so, I have no idea where theirs comes from, but you can use 
the Unix.domain_of_socket function in the Unix library.

William D. Neumann

---

"There's just so many extra children, we could just feed the
children to these tigers.  We don't need them, we're not doing 
anything with them.

Tigers are noble and sleek; children are loud and messy."

         -- Neko Case

Life is unfair.  Kill yourself or get over it.
 	-- Black Box Recorder


      parent reply	other threads:[~2005-11-16 15:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-16 13:01 Harald Schmidt
2005-11-16 13:20 ` [Caml-list] " Gerd Stolpmann
2005-11-16 15:25 ` William D. Neumann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.62.0511160817190.6079@phobos.cs.unm.edu \
    --to=wneumann@cs.unm.edu \
    --cc=anObject@mac.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).