twisted.internet.interfaces.IListeningPort(Interface)
interface documentationtwisted.internet.interfaces
(View In Hierarchy)
Known implementations: twisted.application.test.test_internet.FakePort, twisted.internet.iocpreactor.tcp.Port, twisted.internet.iocpreactor.udp.Port, twisted.internet.tcp.Port, twisted.internet.testing._FakePort, twisted.internet.udp.Port, twisted.pair.tuntap.TuntapPort
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. |
Start listening on this port.
Raises | CannotListenError | If it cannot listen on this port (e.g., it is a TCP port and it cannot bind to the required port number). |