Receives the specified amount of data from the connected ISocket into a specific location of the receive buffer and using the supplied flags.

Namespace:  Rebex.Net
Assembly:  Rebex.Networking (in Rebex.Networking.dll)

Syntax

Visual Basic
Function Receive ( _
	buffer As Byte(), _
	offset As Integer, _
	count As Integer, _
	socketFlags As SocketFlags _
) As Integer
C#
int Receive(
	byte[] buffer,
	int offset,
	int count,
	SocketFlags socketFlags
)

Parameters

buffer
Type: array<System..::..Byte>[]()[][]
The storage location for the received data.
offset
Type: System..::..Int32
The position in the buffer at which to store the received data.
count
Type: System..::..Int32
The number of bytes to receive.
socketFlags
Type: System.Net.Sockets..::..SocketFlags
A bitwise combination of the SocketFlags values.

Return Value

The number of bytes received.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also