From: "polux moon" <polux.moon@wanadoo.fr>
To: "listcaml" <caml-list@inria.fr>
Subject: [Caml-list] Unix.accept and Windows
Date: Fri, 28 Dec 2001 01:09:29 +0100 [thread overview]
Message-ID: <003001c18f33$eb30ea00$ab2c0b50@polux> (raw)
[-- Attachment #1: Type: text/plain, Size: 741 bytes --]
Under Windows 2000 and Xp,
(the same code has no probleme under linux)
i have a fonction wich create a socket like this
let socket_acceuil = Unix.socket domain Unix.SOCK_STREAM 0 in
Unix.bind socket_acceuil my_add_sock;
Unix.listen socket_acceuil 1000;
while true do
message("Attente d un ami\n");
let (s_servA,caller)=Unix.accept socket_acceuil in (
message "ici" ;
ignore ( Thread.create (reconnaitre_identite carnet s_servA) () )
)
done
when i do a telnet on this socket for testing the program stop
the message "Attente d un ami" is printed" but "ici" is not printed
is there something special about Unix.accept under windows ?
ps:message simply do a printf and a flush
[-- Attachment #2: Type: text/html, Size: 1738 bytes --]
reply other threads:[~2001-12-28 0:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='003001c18f33$eb30ea00$ab2c0b50@polux' \
--to=polux.moon@wanadoo.fr \
--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