Sock.Statesimple R/O Property

Top  Previous  Next

Function:

For the currently selected socket (selection is made through sock.num) returns "simplified" current socket state.

Type:

Enum (pl_sock_state_simple, byte)

Value Range:

0- PL_SSTS_CLOSED (default): Connection is closed. Applies both to UDP and TCP.

1- PL_SSTS_ARP: ARP resolution is an progress (it is an active open). Applies both to UDP and TCP.

2- PL_SSTS_PO: Connection is being established (it is a passive open). Applies only to TCP.

3- PL_SSTS_AO: Connection is being established (it is an active open). Applies only to TCP.

4- PL_SSTS_EST: Connection is established. Applies both to UDP and TCP.

5- PL_SSTS_PC: Connection is being closed (it is a passive close). Applies only to TCP.

6- PL_SSTS_AC: Connection is being closed (it is an active close). Applies only to TCP.

See Also:

---

 


Details

This property tells the current "simplified" state of the socket, as opposed to the sock.eventsimple property that returns the "simplified" state at the moment of the on_sock_event event generation.

Another set of read-only properties- sock.event and sock.state- return "detailed" socket states.