Connects the client to the specified port on the specified host.
[Visual Basic]
Overridable Overloads Public Sub Connect( _
ByVal hostname As String, _
ByVal port As Integer _
)
Exception Type | Condition |
---|---|
ArgumentNullException | The hostname 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