Begins an asynchronous request to accept an incoming connection.

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

Syntax

Visual Basic
Public Function BeginAccept ( _
	callback As AsyncCallback, _
	state As Object _
) As IAsyncResult
C#
public IAsyncResult BeginAccept(
	AsyncCallback callback,
	Object state
)

Parameters

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 request.

Implements

ISocketExt..::..BeginAccept(AsyncCallback, Object)

Remarks

A call to Accept is only allowed after a call to Listen(ISocket) methods.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also