Version française
Home     About     Download     Resources     Contact us    
Browse thread
lablgtk2: receiving messages from network?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Markus Mottl <markus.mottl@g...>
Subject: Re: [Caml-list] lablgtk2: receiving messages from network?
On 4/15/06, Ivan Matveich <ivan.matveich@gmail.com> 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