Search notes:

Python standard library: socketserver

The purpsoe of the socketserver module is to simplify writing network servers.

BaseRequestHandler

BaseRequestHandler is the (abstract?) superclass of all request handler objects.
Sub classes must define a handle() method.

Some methods and properties

handle() This method must be overwritten to perform all work which is expected from the server.
request The socket.socket object which is used by the server to communicate with the client.

BaseServer

BaseServer is the (abstract?) superclass of all server objects in the socketserver module.

TCPServer

A prominent class that derives from TCPServer is http.server.HTTPServer.

See also

standard library, socket

Index