caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe TROESTLER <debian00@tiscali.be>
To: "O'Caml Mailing List" <caml-list@inria.fr>
Subject: Re: [Caml-list] What's wrong with win32?
Date: Tue, 30 Mar 2004 19:09:49 +0200 (CEST)	[thread overview]
Message-ID: <20040330.190949.63823938.debian00@tiscali.be> (raw)
In-Reply-To: <20040330.124942.118545865.debian00@tiscali.be>

Ok, I reply to myself -- also to ask a subsequent question...

On Tue, 30 Mar 2004, Christophe TROESTLER <debian00@tiscali.be> 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


  reply	other threads:[~2004-03-30 17:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-30 10:49 Christophe TROESTLER
2004-03-30 17:09 ` Christophe TROESTLER [this message]
2004-04-01  8:43   ` Correnson Loïc
2004-04-01 13:32   ` Xavier Leroy
2004-04-03 12:30     ` Christophe TROESTLER

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=20040330.190949.63823938.debian00@tiscali.be \
    --to=debian00@tiscali.be \
    --cc=caml-list@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).