March 2019
Beginner
490 pages
12h 40m
English
We will start with the server implementation in a script called echo_server_ipv6.py. The first lines will be the libraries that we will use, which are socket (network and connection utilities) and subprocess (which will allow us to execute commands on the server):
import socket import subprocess
Then, we will create the variables: ip, port, max_connections, and server. The ip variable will have the string ::1 value, which will be the IPv6 address of the localhost server; the port through which it will accept connections will be passed as an argument to the script; and max_connections will have a numerical value of 5, which indicates the maximum number of simultaneous connections. Finally, with the socket method, ...
Read now
Unlock full access