PyMOTW: SocketServer

The SocketServer module is a framework for creating network servers. It provides base classes for handling TCP, UDP, Unix streams, and Unix datagrams and supports both threading and forking servers, depending on what is most appropriate for your situation.

Read more at pymotw.com: SocketServer