Mentalis.org Security Library documentation

VirtualSocket.Close Method 

Forces a VirtualSocket connection to close.

[Visual Basic]
Overridable Public Sub Close()
[C#]
public virtual void Close();

Remarks

The Connected property is set to false when the socket is closed.

The application should call Shutdown before calling Close to ensure that all pending data is sent or received before the VirtualSocket is closed.

See Also

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