Mentalis.org Security Library documentation

VirtualSocket.Connected Property

Gets a value indicating whether a VirtualSocket is connected to a remote resource.

[Visual Basic]
Overridable Public ReadOnly Property Connected As Boolean
[C#]
public virtual bool Connected {get;}

Property Value

true if the VirtualSocket is connected to a remote resource; otherwise, false.

Remarks

Gets the connection state of the VirtualSocket. This property will return the latest known state of the VirtualSocket. When it returns false, the VirtualSocket was either never connected, or no longer connected. When it returns true, the VirtualSocket was connected at the time of the last I/O operation.
Note There is no guarantee that the VirtualSocket is still Connected even though Connected returns true.

See Also

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