NetBurner 3.5.6
PDF Version
TCP Socket State

TCP connection state machine values (RFC 793) More...

Macros

#define TCP_STATE_CLOSED   (0)
 Socket is closed, no connection exists.
 
#define TCP_STATE_LISTEN   (1)
 Socket is listening for incoming connections.
 
#define TCP_STATE_SYN_SENT   (2)
 SYN packet sent, waiting for SYN-ACK.
 
#define TCP_STATE_SYN_RCVD   (3)
 SYN received, SYN-ACK sent.
 
#define TCP_STATE_WAIT_FOR_ACCEPT   (4)
 Connection pending, waiting for accept() call.
 
#define TCP_STATE_ESTABLISHED   (5)
 Connection established, data transfer possible.
 
#define TCP_STATE_CLOSE_WAIT   (6)
 FIN received from remote host, local close pending.
 
#define TCP_STATE_LAST_ACK   (7)
 FIN sent, waiting for final ACK.
 
#define TCP_STATE_FIN_WAIT_1   (8)
 Local FIN sent, waiting for ACK.
 
#define TCP_STATE_FIN_WAIT_2   (9)
 Local FIN acknowledged, waiting for remote FIN.
 
#define TCP_STATE_CLOSING   (10)
 Both sides closing simultaneously.
 
#define TCP_STATE_TIME_WAIT   (11)
 Connection closed, waiting to ensure remote received final ACK.
 

Detailed Description

TCP connection state machine values (RFC 793)

#include< tcp.h>


These constants represent the current state of a TCP connection according to the TCP state machine defined in RFC 793. These values should not be modified as they correspond to the TCP protocol specification.