edit_object.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:SameKeyProxy 作者: xzhou 项目源码 文件源码
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())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号