Mentalis.org Security Library documentation

SecureSocket.Accept Method 

Creates a new SecureSocket to handle an incoming connection request.

[Visual Basic]
Overrides Public Function Accept() As VirtualSocket
[C#]
public override VirtualSocket Accept();

Return Value

A SecureSocket to handle an incoming connection request.

Remarks

The returned VirtualSocket can be cast to a SecureSocket if necessary.

Exceptions

Exception TypeCondition
SocketExceptionAn operating system error occurs while accessing the SecureSocket.
ObjectDisposedExceptionThe SecureSocket has been closed.
SecurityExceptionUnable to create the credentials.

See Also

SecureSocket Class | SecureSocket Members | Org.Mentalis.Security.Ssl Namespace