Package commons :: Module servers
[hide private]
[frames] | no frames]

Module servers

source code

Variety of classes, mixins, and functions for servers from low-level sockets to high-level XMLRPC. These are focused on enhancing the features of the SocketServer class hierarchy.


To Do: The documentation for this file is unfortunately a bit lacking toward the end.

Classes [hide private]
  NullXmlRpcServer
XML RPC Server that handles nulls.
  StoppableServerMixin
Mix-in class for SocketServers that checks periodically checks whether we should be exiting, and/or catches errors.
  StreamServer
Base class for stoppable TCP stream servers.
  ThreadingStreamServer
Generic TCP stream server that spawns a handler thread per request.
  XmlRpcServer
  MessageHandler
Handler for accepting and processing "messages." Messages are usually very short strings which require no response.
  SocketStream
Tool for reading lines from a socket.
  StreamClientSocket
Generic TCP stream client.
  StopException
  EndOfStream
  StoppableRequestHandler
Functions [hide private]
 
spawn_server_thread(server)
Calls spawn_thread on the serve_forever method of a given server.
source code
 
stoppable_socket(sock) source code
Variables [hide private]
  HIGHEST_PROTOCOL = 2
  __package__ = 'commons'
  compatible_formats = ['1.0', '1.1', '1.2', '1.3', '2.0']
  format_version = '2.0'