π» 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