This script creates a server and displays a client and server handshake and how they interact, Sending a greeting message to the server (b'Hello server') and receiving a message back (b'Hello client').
[*] started listening 192.168.56.1 : 1234
[*] Got a connection from 192.168.56.1 : 57133
[*] Received ' b'Hello server' ' from the client
Processing data
Processing done.
[*] Reply sent
Response from server:
>>> b'Hello client'
Press enter key to exit...