From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p7VAtQ5W011506 for ; Wed, 31 Aug 2011 12:55:27 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4AAPsRXk7UGyoBkWdsb2JhbABCqEgUAQEBAQkLCwcUAyKCAYFpAROIBwKYCqBnhlUEpC4 X-IronPort-AV: E=Sophos;i="4.68,306,1312149600"; d="scan'208";a="107218234" Received: from smtp1-g21.free.fr ([212.27.42.1]) by mail4-smtp-sop.national.inria.fr with ESMTP; 31 Aug 2011 12:55:26 +0200 Received: from svungoc-latitude-d630.localnet (unknown [82.225.106.147]) by smtp1-g21.free.fr (Postfix) with ESMTP id E5C5C940140 for ; Wed, 31 Aug 2011 12:55:20 +0200 (CEST) From: Vu Ngoc San To: "OCaml List" Date: Wed, 31 Aug 2011 12:55:18 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.6.2; x86_64; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201108311255.19184.san.vu-ngoc@laposte.net> Subject: [Caml-list] nonblock socket in Windows 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" 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