]> git.mxchange.org Git - quix0rs-apt-p2p.git/commitdiff
rpcclient now returns a list containing the return value then a dict currently containing
authorburris <burris>
Sat, 21 Sep 2002 20:38:38 +0000 (20:38 +0000)
committerburris <burris>
Sat, 21 Sep 2002 20:38:38 +0000 (20:38 +0000)
a key 'host' which is the actual ip address we used to contact the peer that is responding

xmlrpcclient.py

index 8e4cc6957c5d32409f604c0aa3dfdeb860abc5dc..7b50917df8b63243c3056e886d13a014cff28a2c 100644 (file)
@@ -23,7 +23,11 @@ class XMLRPCClient(HTTPClient):
            print "response decode error: " + `e`
            self.d.errback()
        else:
-           apply(self.d.callback, args)
+           l = []
+           for i in args:
+               l.append(i)
+           l.append({'host' : self.transport.getHost()[1]})
+           apply(self.d.callback, (l,))
 
 class XMLRPCClientFactory(ClientFactory):
     def __init__(self, method, args, callback=None, errback=None):