Browse thread
[Caml-list] Unix.accept and Windows
- polux moon
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2001-12-28 (00:09) |
From: | polux moon <polux.moon@w...> |
Subject: | [Caml-list] Unix.accept and Windows |
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