[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-blocking socket operations

From: Lamy Jean-Baptiste
Subject: Re: Non-blocking socket operations
Date: Mon, 29 Apr 2002 13:14:01 +0200

On 2002.04.27 18:31:41 +0200 Ian Hinder wrote:
> Hi all,
> I'm writing a networking program and it appears to be hanging every so
> often; I suspect it is during the recv! procedure, and it might be that
> the remote server is simply not sending the data it ought to, and the
> procedure is blocking indefinitely.
> Looking around on the web a bit, there seem to be two options.  I could
> enable SO_rcvtimeou, but I can't seem to get this to work - does Linux
> even support it?  The other option seems to be to use the "select"  call
> to determine if there is any data to be read, but guile doesn't seem to
> have it implemented.  I could write the guile binding myself I suppose,
> it
> doesn't look too hard.

"select" is implemented (and is called... "select" ;-). This is the
solution i've choosen.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]