From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 1AE84BB81 for ; Fri, 24 Mar 2006 22:43:00 +0100 (CET) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id k2OLgtFm018982 for ; Fri, 24 Mar 2006 22:42:58 +0100 Received: from moonraker.parc.com ([13.1.102.214]) by alpha.xerox.com with SMTP id <173758(2)>; Fri, 24 Mar 2006 13:42:32 PST Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: Socket question Date: Fri, 24 Mar 2006 13:42:31 PST Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Socket question Thread-Index: AcZPi9rhg0hD96SATc+4dl8aGUstLg== From: To: X-Miltered: at concorde with ID 442467DF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 buffered:01 ocaml:01 pointers:01 output:02 problem:05 channel:05 i'd:05 flushing:09 force:10 necessarily:10 question:11 solve:11 but:13 some:13 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=NO_REAL_NAME,SPF_FAIL autolearn=disabled version=3.0.3 Hi, Can anyone tell me if there is a way in OCaml to *reliably* force a TCP socket to send out its buffered messages? I noticed that flushing the corresponding output channel of the socket does not *necessarily* cause the message to be sent. I know in C/C++ one can use the "TCP_NODELAY" socket option to solve this problem, but I couldn't find anything in OCaml that does this. I'd appreciate if someone can give me some pointers. Thanks, Rong