Connects the client to a remote TCP host using the specified IP address and port number.
Exception Type | Condition |
---|---|
ArgumentNullException | The address parameter is a null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | port is less than MinPort -or- port is greater than MaxPort. |
SocketException | An operating system error occurs while accessing the Socket. |
ObjectDisposedException | The SecureSocket has been closed. |
SecurityException | The security negotiation failed. |
SecureTcpClient Class | Org.Mentalis.Security.Ssl Namespace | SecureTcpClient.Connect Overload List