November 2001
Beginner
320 pages
5h 53m
English
You can use the usual methods of calling os.fork() or the select module or even threads to support the multiple connections required by most network servers. If you are creating a network service however you might be better off using the SocketServer module which provides a number of different classes designed to handle network communication. The module provides eight different classes which provide all of the mechanisms required to support basic network services similar to HTTP, SMTP, and others. You can see a list of the classes supported in Table 12.2.
| Class | Description |
|---|---|
| TCPServer(address, handler) | A basic TCP-based server. The address should be a tuple containing ... |