The SocketServer module is used to write TCP, UDP, and UNIX domain socket servers. Rather than having to implement servers using the low-level socket module, this module provides four classes that implement these protocols:
A server supporting the TCP protocol using IPv4. address is a tuple of the form (host, port). handler is an instance of a subclass of the BaseRequestHandler class described later.
A server supporting the Internet UDP protocol using IPv4. address and handler are the same as for TCPServer().
A server implementing a stream-oriented protocol using UNIX domain sockets. Inherits from TCPServer.