that's good news for me, thanks ! I'm going to try.

Maybe the ocaml manual could be updated on this point.

San


Le mercredi 31 août 2011 13:05:00, Gerd Stolpmann a écrit :
> Am Mittwoch, den 31.08.2011, 12:55 +0200 schrieb Vu Ngoc San:
> > Hello
> > 
> > I want to have non-blocking sockets for a UDP client/server.  I use
> > the Unix.set_nonblock which works fine in Linux, but the manual tells
> > me that in Windows (Win32):
> > 
> > "set_nonblock, clear_nonblock       implemented as dummy functions; use 
threads
> > instead of non-blocking I/O"
> 
> This is only partially correct. Non-blocking sockets are implemented,
> and these functions work in Ocaml. For other types of file descriptors,
> Windows doesn't provide non-blocking access.
> 
> Gerd
> 
> > I would like to avoid threads, and on the other hand there is the
> > ioctlsocket function in Windows which seems to do it. So why isn't
> > this implemented in ocaml ?
> > 
> > http://msdn.microsoft.com/en-us/library/ms738573


-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to