* [Caml-list] Unix.accept and Windows
@ 2001-12-28 0:09 polux moon
0 siblings, 0 replies; only message in thread
From: polux moon @ 2001-12-28 0:09 UTC (permalink / raw)
To: listcaml
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-12-28 0:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-28 0:09 [Caml-list] Unix.accept and Windows polux moon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox