wwsocket::WaitForSize
Reads a socket until the specified number of bytes are received.
o.WaitForSize(lnBytes)
Returns
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.