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

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

Syntax

Visual Basic
Public Function GetConnectionState As SocketState
C#
public SocketState GetConnectionState()

Field Value

true if the SocketState is connected; otherwise, false.

Implements

ISocketExt..::..GetConnectionState()()()()

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.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also