TCPIP_TCP_STATE Enumeration
C
typedef enum {
TCPIP_TCP_STATE_LISTEN,
TCPIP_TCP_STATE_SYN_SENT,
TCPIP_TCP_STATE_SYN_RECEIVED,
TCPIP_TCP_STATE_ESTABLISHED,
TCPIP_TCP_STATE_FIN_WAIT_1,
TCPIP_TCP_STATE_FIN_WAIT_2,
TCPIP_TCP_STATE_CLOSING,
TCPIP_TCP_STATE_TIME_WAIT,
TCPIP_TCP_STATE_CLOSE_WAIT,
TCPIP_TCP_STATE_LAST_ACK,
TCPIP_TCP_STATE_CLIENT_WAIT_DISCONNECT,
TCPIP_TCP_STATE_CLIENT_WAIT_CONNECT,
TCPIP_TCP_STATE_KILLED
} TCPIP_TCP_STATE;
Description
Enumeration: TCPIP_TCP_STATE.
Enumeration describing the possible states of a TCP socket.
Members
Members | Description |
---|---|
TCPIP_TCP_STATE_LISTEN | Socket is listening for connections. |
TCPIP_TCP_STATE_SYN_SENT | A SYN has been sent, awaiting an SYN+ACK. |
TCPIP_TCP_STATE_SYN_RECEIVED | A SYN has been received, awaiting an ACK. |
TCPIP_TCP_STATE_ESTABLISHED | Socket is connected and connection is established. |
TCPIP_TCP_STATE_FIN_WAIT_1 | FIN WAIT state 1. |
TCPIP_TCP_STATE_FIN_WAIT_2 | FIN WAIT state 2. |
TCPIP_TCP_STATE_CLOSING | Socket is closing. |
TCPIP_TCP_STATE_TIME_WAIT | 2MSL state. |
TCPIP_TCP_STATE_CLOSE_WAIT | Waiting to close the socket. |
TCPIP_TCP_STATE_LAST_ACK | The final ACK has been sent. |
TCPIP_TCP_STATE_CLIENT_WAIT_DISCONNECT | Client socket lost connection, waiting for app close/disconnect. |
TCPIP_TCP_STATE_CLIENT_WAIT_CONNECT | Client socket waiting for connection. |
TCPIP_TCP_STATE_KILLED | Socket is killed; debug reporting state. |