Package rosgraph :: Module xmlrpc :: Class ThreadingXMLRPCServer
[frames] | no frames]

Class ThreadingXMLRPCServer

source code

                  SocketServer.ThreadingMixIn --+
                                                |
              SocketServer.BaseServer --+       |
                                        |       |
                   SocketServer.TCPServer --+   |
                                            |   |
SimpleXMLRPCServer.SimpleXMLRPCDispatcher --+   |
                                            |   |
        SimpleXMLRPCServer.SimpleXMLRPCServer --+
                                                |
                                               ThreadingXMLRPCServer

Adds ThreadingMixin to SimpleXMLRPCServer to support multiple concurrent requests via threading. Also makes logging toggleable.

Instance Methods
 
__init__(self, addr, log_requests=1)
Overrides SimpleXMLRPCServer to set option to allow_reuse_address.
source code
 
handle_error(self, request, client_address)
override ThreadingMixin, which sends errors to stderr
source code

Inherited from SocketServer.ThreadingMixIn: process_request, process_request_thread

Inherited from SocketServer.TCPServer: close_request, fileno, get_request, server_activate, server_bind, server_close, shutdown_request

Inherited from SocketServer.BaseServer: finish_request, handle_request, handle_timeout, serve_forever, shutdown, verify_request

Inherited from SimpleXMLRPCServer.SimpleXMLRPCDispatcher: register_function, register_instance, register_introspection_functions, register_multicall_functions, system_listMethods, system_methodHelp, system_methodSignature, system_multicall

Class Variables

Inherited from SocketServer.ThreadingMixIn: daemon_threads

Inherited from SimpleXMLRPCServer.SimpleXMLRPCServer: allow_reuse_address

Inherited from SocketServer.TCPServer: address_family, request_queue_size, socket_type

Inherited from SocketServer.BaseServer: timeout

Method Details

__init__(self, addr, log_requests=1)
(Constructor)

source code 

Overrides SimpleXMLRPCServer to set option to allow_reuse_address.

Overrides: SimpleXMLRPCServer.SimpleXMLRPCDispatcher.__init__

handle_error(self, request, client_address)

source code 

override ThreadingMixin, which sends errors to stderr

Overrides: SocketServer.BaseServer.handle_error