Mentalis.org Security Library documentation

SecureSocket.Connect Method 

Establishes a connection to a remote device and optionally negotiates a secure transport protocol.

[Visual Basic]
Overrides Public Sub Connect( _
   ByVal remoteEP As EndPoint _
)
[C#]
public override void Connect(
   EndPoint remoteEP
);

Parameters

remoteEP
An EndPoint that represents the remote device.

Exceptions

Exception TypeCondition
ArgumentNullExceptionThe remoteEP parameter is a null reference (Nothing in Visual Basic).
SocketExceptionAn operating system error occurs while accessing the SecureSocket.
ObjectDisposedExceptionThe SecureSocket has been closed.
SecurityExceptionThe security negotiation failed.

See Also

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