コード例 #1
0
ファイル: xmlrpc.py プロジェクト: hugs/shotfactory
    def __init__(self, options):
        Server.__init__(self, options)
        self.factory = options.factory
        self.server_url = options.server.rstrip('/')
        self.xmlrpc_url = self.server_url + '/xmlrpc/'
        self.password = options.password

        socket.setdefaulttimeout(180.0)
        if options.proxy:
            transport = ProxyTransport(options.proxy)
        else:
            transport = xmlrpclib.Transport()
        transport.user_agent = self.get_user_agent()
        self.server = xmlrpclib.Server(self.xmlrpc_url, transport)
        challenge = self.server.nonces.challenge(self.factory)
        encrypted = self.encrypt_password(challenge)
        self.server.nonces.verify(self.factory, encrypted)
コード例 #2
0
    def __init__(self, options):
        Server.__init__(self, options)
        self.factory = options.factory
        self.server_url = options.server.rstrip('/')
        self.xmlrpc_url = self.server_url + '/xmlrpc/'
        self.password = options.password

        socket.setdefaulttimeout(180.0)
        if options.proxy:
            transport = ProxyTransport(options.proxy)
        else:
            transport = xmlrpclib.Transport()
        transport.user_agent = self.get_user_agent()
        self.server = xmlrpclib.Server(self.xmlrpc_url, transport)
        challenge = self.server.nonces.challenge(self.factory)
        encrypted = self.encrypt_password(challenge)
        self.server.nonces.verify(self.factory, encrypted)
コード例 #3
0
 def __init__(self, options):
     Server.__init__(self, options)
     self.factory = options.factory
     self.queue = options.queue
     self.output = options.output
     self.resize = options.resize_output
コード例 #4
0
 def __init__(self, options):
     Server.__init__(self, options)
     self.factory = options.factory
     self.queue = options.queue
     self.output = options.output
     self.resize = options.resize_output