Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

TlsClientSocket.GetConnectionState Method

Namespace: Rebex.Net
Assembly: Rebex.Networking.dll

GetConnectionState()

Gets a value that indicates whether the SocketState is currently connected to a remote host. Inherited from TlsSocket.

Declaration
public SocketState GetConnectionState()
Returns
Type Description
SocketState

true if the SocketState is connected; otherwise, false.

Remarks

As long as there is still data available to be read from the socket, this method will indicate that the SocketState is connected, even though technically it might have already be considered disconnected based on one's point of view.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies