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

Namespace:  Rebex.Net
Assembly:  Rebex.Networking (in Rebex.Networking.dll)

Syntax

Visual Basic
Public ReadOnly Property Connected As Boolean
	Get
C#
public bool Connected { get; }

Field Value

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

Implements

ISocket..::..Connected

Remarks

Gets the connection state of the TlsSocket. This property will return the latest known state of the SecureSocket. When it returns false, the socket was either never connected, or no longer connected.

Note: There is no guarantee that the session is still connected even though Connected returns true.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also