From 62a4c505e488c714e8795ea85564504562d30301 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Sat, 24 Jan 2004 02:47:24 +0000 Subject: Working on the manual... Making better tests for error messages. Changed a few names. Moved gethostname to inet.c. --- doc/stream.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/stream.html') diff --git a/doc/stream.html b/doc/stream.html index b88cbb5..585ad18 100644 --- a/doc/stream.html +++ b/doc/stream.html @@ -69,15 +69,15 @@ callback receives successive chunks of downloaded data. Chunk contains the current chunk of data. When the transmission is over, the function is called with an empty string (i.e. "") as the chunk. -If an error occurs, the function receives nil +If an error occurs, the function receives nil as chunk and an error message in err.

-The callback can abort transmission by returning nil as its first +The callback can abort transmission by returning nil as its first return value, and an optional error message as the second return value. If the application wants to continue receiving -data, the function should return non-nil as it's first return +data, the function should return non-nil as it's first return value. In this case, the function can optionally return a new callback function, to replace itself, as the second return value.

@@ -121,7 +121,7 @@ library needs more data to be sent. Each time the callback is called, it should return the next chunk of data. It can optionally return, as it's second return value, a new callback to replace itself. The callback can abort the process at any time by returning -nil followed by an optional error message. +nil followed by an optional error message.

-- cgit v1.2.3-55-g6feb