Connects the client to a remote TCP host using the specified IP address and port number.
[Visual Basic]
Overridable Overloads Public Sub Connect( _
ByVal address As IPAddress, _
ByVal port As Integer _
)
| 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 | SecureTcpClient Members | Org.Mentalis.Security.Ssl Namespace | SecureTcpClient.Connect Overload List