From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 4ED63BB9C for ; Wed, 16 Nov 2005 16:26:05 +0100 (CET) Received: from mail.cs.unm.edu (mail.cs.unm.edu [64.106.20.33]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jAGFQ4dc015366 for ; Wed, 16 Nov 2005 16:26:05 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.cs.unm.edu (Postfix) with ESMTP id BEF81E40FD; Wed, 16 Nov 2005 08:26:11 -0700 (MST) Received: from mail.cs.unm.edu ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27864-01; Wed, 16 Nov 2005 08:26:11 -0700 (MST) Received: from phobos.cs.unm.edu (phobos.cs.unm.edu [64.106.21.28]) by mail.cs.unm.edu (Postfix) with ESMTP id 64C50E4112; Wed, 16 Nov 2005 08:26:11 -0700 (MST) Date: Wed, 16 Nov 2005 08:25:27 -0700 (MST) From: "William D. Neumann" To: Harald Schmidt Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Problem with network example of Ocaml book In-Reply-To: <200511161302.jAGD1rWV009969@mac.com> Message-ID: References: <200511161302.jAGD1rWV009969@mac.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at cs.unm.edu X-Miltered: at nez-perce with ID 437B4F8C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 ocaml:01 cygwin:01 einval:01 cygwin:01 recorder:98 unix:01 unix:01 wrote:01 abstract:01 argument:01 descriptor:01 neumann:02 neumann:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 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