wwsocket::WaitForSize

Reads a socket until the specified number of bytes are received.

o.WaitForSize(lnBytes)

Return Value

string or ""

Parameters

lnBytes
The number of bytes to read from the server.

Remarks

If a timeout or error occurs, or the socket returns no data on a single read this routine aborts and returns. Note that the error flag is set, but this may not necessarily be an error if you're purposefully overreading the buffer.


See also:

Class wwsocket

© West Wind Technologies, 2023 • Updated: 10/14/01
Comment or report problem with topic