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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id D7E58BB83 for ; Sat, 15 Apr 2006 22:10:42 +0200 (CEST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k3FKAgab009571 for ; Sat, 15 Apr 2006 22:10:42 +0200 Received: by xproxy.gmail.com with SMTP id i27so170399wxd for ; Sat, 15 Apr 2006 13:10:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Q7y+hCe9f52IfFbaCoOwCxdeQUpQ+s4ko8N7lBCr3S61IhsATzQcJMRl01YVVg6GMFaBQ0gbD+bxYX0Se5NngwYcR8ik1nB+aLrM1SSSL2kQkYryNxbBZ3OyCsspAar6Xr/9kwlj077eE8TVBXBEMTRLDcPUDSz7Rfk+qHHZscs= Received: by 10.70.87.1 with SMTP id k1mr1946741wxb; Sat, 15 Apr 2006 13:10:41 -0700 (PDT) Received: by 10.70.58.16 with HTTP; Sat, 15 Apr 2006 13:10:41 -0700 (PDT) Message-ID: Date: Sat, 15 Apr 2006 16:10:41 -0400 From: "Markus Mottl" To: "Ivan Matveich" Subject: Re: [Caml-list] lablgtk2: receiving messages from network? Cc: caml-list@yquem.inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Miltered: at nez-perce with ID 44415342.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; markus:01 mottl:01 markus:01 mottl:01 lablgtk:01 unix:01 unix:01 setsockopt:01 ocaml:01 wrote:01 caml-list:01 marshal:01 argument:01 float:03 passing:03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=INFO_TLD,RCVD_BY_IP autolearn=disabled version=3.0.3 On 4/15/06, Ivan Matveich wrote: > How do I use Marshal without blocking? You can set the socket options Unix.SO_RCVTIMEO and Unix.SO_SNDTIMEO using Unix.setsockopt_float, passing the number of seconds until timeout as argument. Regards, Markus -- Markus Mottl http://www.ocaml.info markus.mottl@gmail.com