twisted.internet.interfaces.IReactorUDP(Interface) interface documentationtwisted.internet.interfaces
(View In Hierarchy)
Known implementations: twisted.internet.iocpreactor.reactor.IOCPReactor, twisted.internet.posixbase.PosixReactorBase, twisted.names.test.test_util.MemoryReactor
UDP socket methods.
| Method | listenUDP | Connects a given DatagramProtocolto the given numeric UDP port. | 
Connects a given DatagramProtocol
to the given numeric UDP port.
| Parameters | port | A port number on which to listen. (type: int) | 
| protocol | A DatagramProtocolinstance which will be connected to the givenport. (type:DatagramProtocol) | |
| interface | The local IPv4 or IPv6 address to which to bind; defaults to '', ie all 
IPv4 addresses. (type: str) | |
| maxPacketSize | The maximum packet size to accept. (type: int) | |
| Returns | object which provides IListeningPort. | |