Part of twisted.internet.interfaces View Source View In Hierarchy
Known implementations: twisted.internet.iocpreactor.udp.Port
|Method||write||Write packet to given address.|
|Method||connect||Connect the transport to an address.|
|Method||getHost||Get this port's host address.|
|Method||stopListening||Stop listening on this port.|
|Method||setBroadcastAllowed||Set whether this port may broadcast.|
|Method||getBroadcastAllowed||Checks if broadcast is currently allowed on this port.|
|Parameters||addr||a tuple of (ip, port). For connected transports must be the address the transport is connected to, or None. In non-connected mode this is mandatory.|
This changes it to connected mode. Datagrams can only be sent to this address, and will only be received from this address. In addition the protocol's connectionRefused method might get called if destination is not receiving datagrams.
|Parameters||host||an IP address, not a domain name ('127.0.0.1', not 'localhost')|
|port||port to connect to.|
|Returns||an address describing the listening port. (type: |
If it does not complete immediately, will return
fires upon completion.
|Parameters||enabled||Whether the port may broadcast. (type: |