def __init__(self, string_transport, factory, reactor): self._string_transport = string_transport BaseConnector.__init__(self, factory, None, reactor)
def connect(self): self.connects += 1 BaseConnector.connect(self)
def __init__(self, process, factory, timeout, reactor): if timeout: assert not reactor is None, "Need an reactor to use timeout." BaseConnector.__init__(self, factory, timeout, reactor) self.process = process