TlsClientSocket.Connected Property
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9119)
Connected
Gets a value indicating whether a TlsSocket is connected to a remote resource. Inherited from TlsSocket.
Declaration
public bool Connected { get; }
Property Value
Type | Description |
---|---|
Boolean | true if the TlsSocket is connected to a remote resource; otherwise, false. |
Implements
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.