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