What do all the TCP states actually mean?
• CLOSED (0) Socket is closed LISTEN (1) Socket is passive, awaiting a connection request SYN_SENT (2) Socket is active, has sent a SYN Session not yet active SYN_RECEIVED (3) Socket is active, has sent and received SYN Session not yet active ESTABLISHED (4) Socket is active Session is active, has completed handshake CLOSE_WAIT (5) Socket is closed, received FIN, waiting for close Session is terminating FIN_WAIT (6) Socket is closed, sent FIN, waiting for FIN ACK Session is terminating CLOSING (7) Socket is closed, exchanged FIN, waiting for FIN ACK Session is terminating LAST_ACK (8) Socket is closed, received FIN, waiting for FIN ACK Session is terminating FIN_WAIT_2 (9) Socket is closed, received FIN ACK Session is complete TIME_WAIT (10) Socket is closed, waits for ( 2 * max segment life ) Session is complete