January 2019
Beginner to intermediate
776 pages
19h 58m
English
An instance of ForkingServer is launched in the main thread, which has been daemonized to run in the background. Now, the two clients have started interacting with the server.
If you run the script, it will show the following output:
$ python 12_1_forking_mixin_socket_server.py Server loop running PID: 26479 PID 26479 Sending echo message to the server : "Hello echo server!" Sent: 18 characters, so far... Server sending response [current_process_id: data] = [26481: Hello echo server!] PID 26479 received: b': Hello echo server!' First client running PID 26479 Sending echo message to the server : "Hello echo server!" Sent: 18 characters, so far... Server sending response [current_process_id: data] = [26482: Hello echo server!] ...
Read now
Unlock full access