Version française
Home     About     Download     Resources     Contact us    
Browse thread
Problem with network example of Ocaml book
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: William D. Neumann <wneumann@c...>
Subject: Re: [Caml-list] Problem with network example of Ocaml book
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