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 _
)
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The remoteEP parameter is a null reference (Nothing in Visual Basic). |
| 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