September 2018
Intermediate to advanced
426 pages
10h 46m
English
Types and functions needed to work with sockets can be found in Python in the socket module. The socket module exposes all of the necessary pieces to quickly write TCP and UDP clients and servers. The socket module has almost everything you need to build a socket server or client. In the case of Python, the socket returns an object to which the socket methods can be applied.
This module comes installed by default when you install the Python distribution.
To check it, we can do so from the Python interpreter:

In this screenshot, we see all the constants and methods that we have available in this module. The constants we see ...
Read now
Unlock full access