Mentalis.org Security Library documentation

SecureSocket.BeginConnect Method 

Begins an asynchronous request for a connection to a network device.

[Visual Basic]
Overrides Public Function BeginConnect( _
   ByVal remoteEP As EndPoint, _
   ByVal callback As AsyncCallback, _
   ByVal state As Object _
) As IAsyncResult
[C#]
public override IAsyncResult BeginConnect(
   EndPoint remoteEP,
   AsyncCallback callback,
   object state
);

Parameters

remoteEP
An EndPoint that represents the remote device.
callback
The AsyncCallback delegate.
state
An object that contains state information for this request.

Return Value

An IAsyncResult that references the asynchronous connection.

Exceptions

Exception TypeCondition
ArgumentNullExceptionremoteEP is a null reference (Nothing in Visual Basic).
SocketExceptionAn operating system error occurs while creating the SecureSocket.
ObjectDisposedExceptionThe SecureSocket has been closed.

See Also

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