class documentation

class _FakePort: (source)

Implements interfaces: twisted.internet.interfaces.IListeningPort

View In Hierarchy

A fake IListeningPort to be used in tests.
Method __init__
Method get​Host Fake IListeningPort.getHost that returns our IAddress.
Method start​Listening Fake IListeningPort.startListening that doesn't do anything.
Method stop​Listening Fake IListeningPort.stopListening that doesn't do anything.
Instance Variable _host​Address The IAddress this IListeningPort is pretending to be listening on.
def __init__(self, hostAddress): (source)
Parameters
host​AddressAn IAddress this IListeningPort should pretend to be listening on.
def startListening(self): (source)
def stopListening(self): (source)
_hostAddress = (source)
The IAddress this IListeningPort is pretending to be listening on.