Three Way Handshake
1.0.0
An example of a TCP-Handshake (Three-Way-Handshake) written in Python.
TCP uses a three-way handshake to establish a reliable connection. The connection is full duplex, and both sides synchronize (SYN) and acknowledge (ACK) each other. The exchange of these four flags is performed in three steps—SYN, SYN-ACK, and ACK.
Open two differents shells and run the files in each shell.
Run the server.py file before the client.py file.
python3 server.py
python3 client.py