September 2018
Intermediate to advanced
426 pages
10h 46m
English
With the gethostbyaddr(address) method, we can obtain a domain name from an IP address.
socket.accept() is used to accept the connection from the client. This method returns two values: client_socket and client_address, where client_socket is a new socket object used to send and receive data over the connection.
socket.sendto(data, address) is used to send data to a given address.