Begins an asynchronous request to create a new VirtualSocket to accept an incoming connection request.
[Visual Basic]
Overridable Public Function BeginAccept( _
ByVal callback As AsyncCallback, _
ByVal state As Object _
) As IAsyncResult
An IAsyncResult that references the asynchronous VirtualSocket creation.
The BeginAccept method starts an asynchronous request to create a VirtualSocket to handle an incoming connection request. You must create a callback method that implements the AsyncCallback delegate. This callback method should use the EndAccept method to retrieve the VirtualSocket.
Exception Type | Condition |
---|---|
SocketException | An operating system error occurs while creating the VirtualSocket. |
ObjectDisposedException | The VirtualSocket has been closed. |
VirtualSocket Class | VirtualSocket Members | Org.Mentalis.Security.Ssl Namespace