Mentalis.org Security Library documentation

VirtualSocket.InternalEndAccept Method 

Ends an asynchronous request to create a new Socket to accept an incoming connection request.

[Visual Basic]
Overridable Protected Function InternalEndAccept( _
   ByVal asyncResult As IAsyncResult _
) As Socket
[C#]
protected virtual Socket InternalEndAccept(
   IAsyncResult asyncResult
);

Parameters

asyncResult
Stores state information for this asynchronous operation as well as any user defined data.

Return Value

A VirtualSocket to handle the incoming connection.

Remarks

The InternalEndAccept method completes a request for a connection that was started with the InternalBeginAccept method.

Exceptions

Exception TypeCondition
ArgumentNullExceptionasyncResult is a null reference (Nothing in Visual Basic).
ArgumentExceptionasyncResult was not created by a call to BeginAccept.
SocketExceptionAn operating system error occurs while accessing the VirtualSocket.
ObjectDisposedExceptionThe VirtualSocket has been closed.

See Also

VirtualSocket Class | VirtualSocket Members | Org.Mentalis.Security.Ssl Namespace