Discuss this help topic in SecureBlackbox Forum
Receives data from a connected Socket.
Declaration
Parameters
Socket flags values:
|
Return value
The number of bytes received.
Description
The
Blocking parameter determines the behavior of this method when no incoming data is available.
When False, a SocketException is thrown. When True, this method blocks and waits for data to arrive.
If you specify the
Peek flag as the socketFlags parameter,
the available data is copied into the receive buffer but not removed from
the system buffer. If you specify the
OutOfBand flag as the socketFlags
parameter and the Socket is configured for in-line reception of out-of-band
(OOB) data (using OutOfBandInline) and OOB data is available,
Receive will return only OOB data. The OOB data is a logically independent
transmission channel associated with each pair of connected stream sockets.
This data is delivered with higher priority and independently of the normal data.
Please note that you should not call this method for SSLSocket class but for derived classes only.