#!/usr/bin/env python import SocketServer from lliurex.cap import listener from SimpleXMLRPCServer import SimpleXMLRPCServer,SimpleXMLRPCRequestHandler class AsyncXMLRPCServer(SocketServer.ThreadingMixIn,SimpleXMLRPCServer): pass # Example class to be published server = AsyncXMLRPCServer(('', 4242), SimpleXMLRPCRequestHandler) server.register_instance(listener.listener()) server.register_introspection_functions() server.serve_forever()