def rpcserver(self):
"""
rpcserver is intended to be launched as a separate thread. This class
will launch an RPC server that can pass and receive debugging events
to debugging clients.
"""
try:
self.log.info("plugin.http.ObjectEditor: starting XML RPC Server")
server = SimpleXMLRPCServer(addr=("localhost", 20758), logRequests=False, allow_none=1)
#server.register_function(self.disable, "")
server.register_function(self.connect, "connect")
server.serve_forever()
except:
self.log.error("plugin.http.ObjectEditor: rpcserver: error " \
"connecting to remote")
self.log.error(sys.exc_info())
评论列表
文章目录