The state of a socket.
| Type | Name | Value |
|---|---|---|
| constant | UNBOUND | 0 |
| constant | BOUND | 1 |
| constant | CONNECTED | 2 |
| constant | CLOSED | 3 |
public const SocketState UNBOUND = 0The socket has not been bound to a local address yet.
public const SocketState BOUND = 1The socket is bound to a local address, but is not connected to remote address.
public const SocketState CONNECTED = 2The socket is connected to remote address.
public const SocketState CLOSED = 3The socket is closed for the previous connection, and not bound to a local address anymore.