From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA10836; Tue, 30 Mar 2004 19:09:32 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA11669 for ; Tue, 30 Mar 2004 19:09:31 +0200 (MET DST) Received: from abel.swapping.umh.ac.be (nat2.umh.ac.be [193.190.193.2]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i2UH9UYM003124 for ; Tue, 30 Mar 2004 19:09:30 +0200 Received: from abel.swapping.umh.ac.be ([127.0.0.1] helo=localhost ident=trch) by abel.swapping.umh.ac.be with esmtp (Exim 3.36 #1 (Debian)) id 1B8MkJ-0001Fg-00; Tue, 30 Mar 2004 19:09:51 +0200 Date: Tue, 30 Mar 2004 19:09:49 +0200 (CEST) Message-Id: <20040330.190949.63823938.debian00@tiscali.be> To: "O'Caml Mailing List" Subject: Re: [Caml-list] What's wrong with win32? From: Christophe TROESTLER In-Reply-To: <20040330.124942.118545865.debian00@tiscali.be> References: <20040330.124942.118545865.debian00@tiscali.be> Organization: None X-Spook: Verisign EuroFed CNCIS Ermes illuminati CBNRC quarter Ruby Ridge MILSATCOM mania X-Mailer-URL: http://www.mew.org/ X-Operating-System: GNU/Linux (http://www.linux.org/) X-Blessing: Om Ah Hum Vajra Guru Pema Siddhi Hum X-Mailer: Mew version 4.0.61 on Emacs 21.3.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 troestler:01 tiscali:99 troestler:01 tiscali:99 descriptor:01 chris:01 christophe:01 christophe:01 imho:01 sockets:01 sockets:01 exception:02 unix:02 unix:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Ok, I reply to myself -- also to ask a subsequent question... On Tue, 30 Mar 2004, Christophe TROESTLER wrote: > > let (ic, oc) = Unix.open_connection (Unix.ADDR_INET(addr, port)) in > > However, when I try to run it under windows 98 [...] > Fatal error: exception Sys_error("Bad file descriptor") Ok, the trouble comes from the fact that Unix.open_connection uses in_channel_of_descr of which the manual says in_channel_of_descr does not work on sockets under Windows 95, 98, ME; works fine under NT and 2000 Well, I tried the program under Win 2000 Professional and got the same error... Anyway, it would be nice that (1) open_connection be mentionend in the manual as not working under win 9* or, even much better, to make that (2) Unix.open_connection actually works under win32! IMHO it is quite unfortunate that in_channel_of_descr does not work under windows for sockets since it basically forces the programmer to reimplement input/output functions for these. Is the current situation made for efficiency reasons (it is costly for in/out channels to carry their type with them) or is there a deeper problem with Win$ platforms? Cheers, ChriS ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners