January 2019
Beginner to intermediate
776 pages
19h 58m
English
In order to see the client/server interactions, launch the following server script in one console:
$ python 11_13a_echo_server.py --port=9900
Starting up echo server on localhost port 9900
Waiting to receive message from client
Now, run the client from another Terminal as follows:
$ python 11_13b_echo_client.py --port=9900 Connecting to localhost port 9900 Sending Test message. This will be echoed Received: Test message. Th Received: is will be echoe Received: d Closing connection to the server
Upon receiving the message from the client, the server will also print something similar to the following message:
Data: Test message. This will be echoed
sent Test message. This will be echoed bytes back to ('127.0.0.1', ...Read now
Unlock full access