Ends a pending asynchronous read.

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

Syntax

Visual Basic
Public Function BeginReceive ( _
	buffer As Byte(), _
	offset As Integer, _
	size As Integer, _
	socketFlags As SocketFlags, _
	callback As AsyncCallback, _
	state As Object _
) As IAsyncResult
C#
public IAsyncResult BeginReceive(
	byte[] buffer,
	int offset,
	int size,
	SocketFlags socketFlags,
	AsyncCallback callback,
	Object state
)

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.
size
Type: System..::..Int32
The number of bytes to receive.
socketFlags
Type: System.Net.Sockets..::..SocketFlags
A bitwise combination of the SocketFlags values.
callback
Type: System..::..AsyncCallback
The AsyncCallback delegate.
state
Type: System..::..Object
An object containing state information for this request.

Return Value

An IAsyncResult that references the asynchronous send.

Implements

ISocketExt..::..BeginReceive(array<Byte>[]()[][], Int32, Int32, SocketFlags, AsyncCallback, Object)

Remarks

The EndReceive method completes a request to accept a connection that was started with the BeginReceive(array<Byte>[]()[][], Int32, Int32, SocketFlags, AsyncCallback, Object) method.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also