| Trees | Index | Help |
|
|---|
| Module server :: Class Co2Server |
|
BaseServer --+
|
TCPServer --+
|
SimpleXMLRPCDispatcher --+
|
SimpleXMLRPCServer --+
|
Co2Server
SimpleXMLRPCServer.SimpleXMLRPCServer.
| Method Summary | |
|---|---|
first calls the SimpleXMLRPCServer.SimpleXMLRPCServer's
init, then does some co2 stuff. | |
__repr__(self)
| |
__str__(self)
| |
clean up on server exit. | |
Called to clean up an individual request. (inherited from TCPServer)
| |
Return socket file number. (inherited from TCPServer)
| |
Get the request and client address from the socket. (inherited from TCPServer)
| |
start the handle-request loop. | |
Same as in BaseHTTPServer but as a thread and, in addition, exception handling is done here. | |
start a new thread to process the request. | |
register a method to be called on server exit. | |
Registers a function to respond to XML-RPC requests. (inherited from SimpleXMLRPCDispatcher)
| |
register a registry.Co2Registryinstance which will
handle xmlrpc calls. | |
Registers the XML-RPC introspection methods in the system namespace. (inherited from SimpleXMLRPCDispatcher)
| |
Registers the XML-RPC multicall method in the system namespace. (inherited from SimpleXMLRPCDispatcher)
| |
Called by constructor to activate the server. (inherited from TCPServer)
| |
Called by constructor to bind the socket. (inherited from TCPServer)
| |
Called to clean-up the server. (inherited from TCPServer)
| |
system.listMethods() => ['add', 'subtract', 'multiple'] (inherited from SimpleXMLRPCDispatcher)
| |
system.methodHelp('add') => "Adds two integers together" (inherited from SimpleXMLRPCDispatcher)
| |
system.methodSignature('add') => [double, int, int] (inherited from SimpleXMLRPCDispatcher)
| |
system.multicall([{'methodName': 'add', 'params': [2, 2]}, ...]) => [[4], ...] (inherited from SimpleXMLRPCDispatcher)
| |
| Class Variable Summary | |
|---|---|
int |
allow_reuse_address
|
| Method Details |
|---|
__init__(self,
vars)
first calls the |
clean_up(self)clean up on server exit. call registered exit hooks, wait a little, then the server exits, because this is the last thing done. |
listen(self)start the handle-request loop. |
process_request_thread(self, request, client_address)Same as in BaseHTTPServer but as a thread and, in addition, exception handling is done here.
|
process_request_threaded(self, request, client_address)start a new thread to process the request. callsCo2Server.process_request_thread in a
thread. parameters are equivalent to that method's.
|
register_exit_hook(self, method)register a method to be called on server exit.
|
register_instance(self, instance)register a SimpleXMLRPCServer.SimpleXMLRPCServer's
register_instance method is called first, then the methods of the
registry are converted to html (served to clients via GET requests and the server's properties
are added to the registry's properties.
|
| Class Variable Details |
|---|
allow_reuse_address
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 1.1 on Thu Oct 16 16:37:23 2003 | http://epydoc.sf.net |