from twisted.internet.defer import Deferred
from xmlrpclib import loads, dumps
+import socket
USER_AGENT = 'Python/Twisted XMLRPC 0.1'
class XMLRPCClient(HTTPClient):
self.d.addCallback(callback)
if errback:
self.d.addErrback(errback)
-
+ self.noisy = 0
+
def buildProtocol(self, addr):
prot = XMLRPCClient()
prot.method = self.method
prot.args = self.args
prot.d = self.d
return prot
+
+ def clientConnectionFailed(self, connector, reason):
+ self.d.errback()
\ No newline at end of file