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