scsh-users
[Top] [All Lists]

Re: read-string/partial

To: scsh-news@zurich.ai.mit.edu, "stktrc" <stktrc@yahoo.com>
Subject: Re: read-string/partial
From: "Rolf-Thomas Happe" <rthappe@web.de>
Date: Tue, 22 Apr 2003 19:32:29 +0200
Organization: http://freemail.web.de/
stktrc writes:
> block until there is something to read.  But read-string/partial (with
> nbytes > 0) on an (TCP) socket inport returns immediately with ""
> (empty string, which I interpret as that no data was read).  It should
> have blocked AFAICT.

... except if the inport was set to non-blocking i/o (or the reader 
encountered eof).  The inport state can be checked with 

    (bitwise-and open/non-blocking (fdes-status inport))) 

rthappe

______________________________________________________________________________
UNICEF bittet um Spenden fur die Kinder im Irak! Hier online an
UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101


<Prev in Thread] Current Thread [Next in Thread>