Mono Class Library: System.Net.Sockets.Socket Overview | MembersSystem.Net.Sockets.Socket.Connected Property |
Gets a bool value indicating whether the current instance is connected. [Edit]
|
true indicates that the current instance was connected at the time of the last I/O operation; false indicates that the current instance is not connected. [Edit]
This property is read-only.
When this property returns true, the current instance was connected at the time of the last I/O operation; it might not still be connected. When this property returns false, the current instance was never connected or is not currently connected.
The current instance is considered connected when the Socket.RemoteEndPoint property contains a valid endpoint.
Note: The Socket.Accept and Socket.Connect(System.Net.EndPoint) methods, and their asynchronous counterparts set this property.[Edit]
Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0