Networking and Internet Modules

socketserver

Framework for network servers and request-handler classes. Server classes manage transport and dispatch; handlers implement application behavior. Threading and forking variants have different concurrency and platform constraints. This example inspects class relationships without binding a socket.

Formal Syntax & Structure

python syntaxpython
import socketserver

Return Value

module

Module namespace available through import; import is a statement, not a value-returning expression.

Working Example

Example Snippetpython
from socketserver import TCPServer, BaseServerprint(issubclass(TCPServer, BaseServer))
Python Reference