Initializes a new instance of the SecureTcpClient class and connects to the specified port on the specified host.
[Visual Basic]
Overloads Public Sub New( _
ByVal hostname As String, _
ByVal port As Integer, _
ByVal options As SecurityOptions _
)
Exception Type | Condition |
---|---|
ArgumentNullException | hostname is null (Nothing in Visual Basic). |
ArgumentOutOfRangeException | port is less than MinPort -or- port is greater than MaxPort. |
SocketException | An error is encountered when resolving hostname -or- an error occurred while connecting to the remote host. |
SecurityException | The security negotiation failed. |
SecureTcpClient Class | SecureTcpClient Members | Org.Mentalis.Security.Ssl Namespace | SecureTcpClient Constructor Overload List