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
A SecureSocket to handle the incoming connection.
The returned VirtualSocket can be cast to a SecureSocket if necessary.
Exception Type | Condition |
---|---|
ArgumentNullException | asyncResult is a null reference (Nothing in Visual Basic). |
ArgumentException | asyncResult was not created by a call to BeginAccept. |
SocketException | An operating system error occurs while accessing the SecureSocket. |
ObjectDisposedException | The SecureSocket has been closed. |
SecurityException | Unable to create the credentials -or- client authentication error. |
SecureSocket Class | SecureSocket Members | Org.Mentalis.Security.Ssl Namespace