t.i.i.IListeningPort(Interface) : interface documentation

Part of twisted.internet.interfaces View Source View In Hierarchy

Known implementations: twisted.internet.iocpreactor.tcp.Port, twisted.internet.iocpreactor.udp.Port

A listening port.
Method startListening Start listening on this port.
Method stopListening Stop listening on this port.
Method getHost Get the host that this port is listening for.
def startListening(): (source)
Start listening on this port.
RaisesCannotListenErrorIf it cannot listen on this port (e.g., it is a TCP port and it cannot bind to the required port number).
def stopListening(): (source)
Stop listening on this port.

If it does not complete immediately, will return Deferred that fires upon completion.

def getHost(): (source)
Get the host that this port is listening for.
ReturnsAn IAddress provider.
API Documentation for Twisted, generated by pydoctor at 2013-11-18 18:11:01.