SimpleXMLRPCServer

Skip Montanaro skip at pobox.com
Fri Jan 16 09:38:57 EST 2004


    Maxim> is there a way to process actions other than XML-RPC requests
    Maxim> using SimpleXMLRPCServer? Is is possible to do something like

    Maxim> server = SimpleXMLRPCServer(('', 8000))
    Maxim> server.register_instance(MyClass())
    Maxim> while(1)
    Maxim>  if(checkSomeCondidion()):
    Maxim>   server.serve_once()
    Maxim>  else: server.stop()

You should be able to override the serve_forever() method.

Skip




More information about the Python-list mailing list