Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 559 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 559 Bytes

ServerClient

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').

Run the Server:

Prompt:

[*] 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

Run Client:

Prompt:

Response from server:

>>> b'Hello client'

Press enter key to exit...