Mentalis.org Security Library documentation

SecureTcpClient.Connect Method (IPEndPoint)

Connects the client to a remote TCP host using the specified remote network endpoint.

[Visual Basic]
Overridable Overloads Public Sub Connect( _
   ByVal remoteEP As IPEndPoint _
)
[C#]
public virtual void Connect(
   IPEndPoint remoteEP
);

Parameters

remoteEP
The IP endpoint to which you intend to connect.

Exceptions

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

See Also

SecureTcpClient Class | Org.Mentalis.Security.Ssl Namespace | SecureTcpClient.Connect Overload List