Accepts a pending connection request.
[Visual Basic]
Overridable Public Function AcceptTcpClient() As SecureTcpClient
A SecureTcpClient used to send and receive data.
AcceptTcpClient returns a SecureTcpClient that you can use to send and receive data. Use SecureTcpClient.GetStream to obtain the underlying SecureNetworkStream of the SecureTcpClient. SecureNetworkStream inherits from Stream, which provides a rich collection of methods and properties for network communications.
Note When you are through with the returned SecureTcpClient, be sure to call it's Close method.
Note If you want greater flexibility than a SecureTcpClient offers, consider using AcceptSocket.
Exception Type | Condition |
---|---|
InvalidOperationException | The listener has not been started with a call to Start. |
SocketException | An operating system error occurs while accessing the SecureSocket. |
SecurityException | Unable to create the SSPI credentials. |
SecureTcpListener Class | SecureTcpListener Members | Org.Mentalis.Security.Ssl Namespace