Пример #1
0
    def __init__(self, *args, **kw):
        self.user = kw.pop("user", None)
        self.password = kw.pop("password", None)
        RequesterBase.__init__(self, *args, **kw)

        self.remoteHost, self.remotePort = None, None
        self._responseQueue = list()
Пример #2
0
    def buildProtocol(self, addr):
        protocol = RequesterBase.buildProtocol(self, addr)
        protocol.remoteHost = self.remoteHost
        protocol.remotePort = self.remotePort

        return protocol