ISocket.Receive Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9119)
Receive(Byte[], Int32, Int32, SocketFlags)
Receives the specified amount of data from the connected ISocket into a specific location of the receive buffer and using the supplied flags.
Declaration
int Receive(byte[] buffer, int offset, int count, SocketFlags socketFlags)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The storage location for the received data. |
Int32 | offset | The position in the buffer at which to store the received data. |
Int32 | count | The number of bytes to receive. |
SocketFlags | socketFlags | A bitwise combination of the SocketFlags values. |
Returns
Type | Description |
---|---|
Int32 | The number of bytes received. |