twisted.internet.interfaces.IReactorUDP(Interface)
interface documentationtwisted.internet.interfaces
View Source
(View In Hierarchy)
Known implementations: twisted.internet.iocpreactor.reactor.IOCPReactor, twisted.internet.posixbase.PosixReactorBase
UDP socket methods.
Method | listenUDP | Connects a given DatagramProtocol
to 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 DatagramProtocol
instance which will be connected to the given port . (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 . |