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 > > -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany [email protected] Creator of GODI and camlcity.org. Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de *** Searching for new projects! Need consulting for system *** programming in Ocaml? Gerd Stolpmann can help you. ------------------------------------------------------------ -- 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
