February 2006
Intermediate to advanced
648 pages
14h 53m
English
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:
TCPServer(address, handler)
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.
UDPServer(address, handler)
A server supporting the Internet UDP protocol using IPv4. address and handler are the same as for TCPServer().
UnixStreamServer(address, handler)
A server implementing a stream-oriented protocol using UNIX domain sockets. Inherits from TCPServer.
UnixDatagramServer(address, ...
Read now
Unlock full access