TCP Socket States Flashcards
LISTEN
A TCP socket is ready and is listening for incoming connections. Server-side only.
SYN_SENT
A synchronization request has been sent, but the connection hasn’t been established yet. Client-side only
SYN_RECEIVED
A socket previously in a LISTEN state has received a synchronization request and has sent a SYN/ACK back. Server-side only
ESTABLISHED
The TCP connection is in working order and both sides are free to send each other data. Seen on both Client and Server.
FIN_WAIT
A FIN has been sent, but the corresponding ACK from the other end has not been received yet.
CLOSE_WAIT
The connection has been closed at the TCP layer, but the application that opened the socket hasn’t released it’s hold on the socket yet.
CLOSED
The connection has been fully terminated and no further communication is possible