public Receive ( byte buffer ) : int | ||
buffer | byte | /// Buffer to store the received data. /// |
return | int |
The Receive method will read as much data as is available, up to the size of the buffer. If the remote host shuts down the BytesRoad.Net.Sockets.SocketEx connection with the BytesRoad.Net.Sockets.SocketEx.Shutdown method, and all available data has been received, the Receive method will complete immediately and return zero bytes.
public Receive ( byte buffer ) : int | ||
buffer | byte | /// Buffer to store the received data. /// |
return | int |