X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=xmlrpcclient.py;h=f8d33b2fb05d7e5bdf1cf24572fa1595bb486be9;hb=2ce2ba6146457d6c321e8ece8116d422cda39a70;hp=8e4cc6957c5d32409f604c0aa3dfdeb860abc5dc;hpb=b2de61b864a5ee74afc9b6eafb4a64ff31ba1ba0;p=quix0rs-apt-p2p.git diff --git a/xmlrpcclient.py b/xmlrpcclient.py index 8e4cc69..f8d33b2 100644 --- a/xmlrpcclient.py +++ b/xmlrpcclient.py @@ -3,6 +3,7 @@ from twisted.protocols.http import HTTPClient from twisted.internet.defer import Deferred from xmlrpclib import loads, dumps +import socket USER_AGENT = 'Python/Twisted XMLRPC 0.1' class XMLRPCClient(HTTPClient): @@ -34,7 +35,8 @@ class XMLRPCClientFactory(ClientFactory): self.d.addCallback(callback) if errback: self.d.addErrback(errback) - + self.noisy = 0 + def buildProtocol(self, addr): prot = XMLRPCClient() prot.method = self.method