class documentation

class _FakeConnector: (source)

Implements interfaces: twisted.internet.interfaces.IConnector

View In Hierarchy

A fake IConnector that allows us to inspect if it has been told to stop connecting.
Method __init__
Method connect Implement IConnector.connect as a no-op.
Method disconnect Implement IConnector.disconnect as a no-op.
Method getDestination Implement IConnector.getDestination to return the address passed to __init__.
Method stopConnecting Implement IConnector.stopConnecting and set _FakeConnector.stoppedConnecting to True
Instance Variable stoppedConnecting has this connector's _FakeConnector.stopConnecting method been invoked yet?
Instance Variable _address An IAddress provider that represents our destination.
Instance Variable _disconnected Undocumented
def __init__(self, address): (source)
Parameters
addressAn IAddress provider that represents this connector's destination.
def connect(self): (source)
def disconnect(self): (source)
def getDestination(self): (source)
Implement IConnector.getDestination to return the address passed to __init__.
stoppedConnecting: bool = (source)
has this connector's _FakeConnector.stopConnecting method been invoked yet?
_address = (source)
An IAddress provider that represents our destination.
_disconnected: bool = (source)

Undocumented