Description
Receives data from a socket.
Syntax
socket.receive(stream, len[, flag])
Parameters
| Flag | Description |
| 0x02 | Peek at the incoming data. The data is copied into the StringStream but is not removed from the input queue. |
| 0x01 | Process out-of-band data |
Returns
Integer. The number of bytes received.