On June 6, 2007 8:22:44 PM +0100 Joe Orton <[EMAIL PROTECTED]> wrote:
On Tue, Jun 05, 2007 at 12:34:48PM -0700, Frank Cusack wrote:
On June 3, 2007 6:41:32 PM -0700 Frank Cusack <[EMAIL PROTECTED]>
wrote:
> If I do ne_get(session, path, fd), how do I know when I've read the
> entire response from fd?

come on, no one knows the answer to this?

ne_get() writes the entire response to the given fd.  When reading the
file, the response ends when the file ends - at EOF.

ne_get() does not close the fd after it is finished writing the response.

So, sure, ne_get() blocks while it reads the entire response from the
server and then writes the entire response to fd, but read() is not
guaranteed to read in the entire response (of course, because maybe your
read buf is only 1 byte).  That's fine, but I never get EOF when reading
from fd.

(Looking for EOF was my first, obvious, thought.)

-frank
_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon

Reply via email to