Mentalis.org Security Library documentation

SecureSocket.EndAccept Method 

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

[Visual Basic]
Overrides Public Function EndAccept( _
   ByVal asyncResult As IAsyncResult _
) As VirtualSocket
[C#]
public override VirtualSocket EndAccept(
   IAsyncResult asyncResult
);

Parameters

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

Return Value

A SecureSocket to handle the incoming connection.

Remarks

The returned VirtualSocket can be cast to a SecureSocket if necessary.

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 SecureSocket.
ObjectDisposedExceptionThe SecureSocket has been closed.
SecurityExceptionUnable to create the credentials -or- client authentication error.

See Also

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