Begins an asynchronous request for a connection to a network device.
[Visual Basic]
Overridable Public Function BeginConnect( _
ByVal remoteEP As EndPoint, _
ByVal callback As AsyncCallback, _
ByVal state As Object _
) As IAsyncResult
An IAsyncResult that references the asynchronous connection.
The BeginConnect method starts an asynchronous request for a remote host connection. You must create a callback method that implements the AsyncCallback delegate. This callback method should use the EndConnect method to return the VirtualSocket.
Exception Type | Condition |
---|---|
ArgumentNullException | remoteEP is a null reference (Nothing in Visual Basic). |
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