interface documentation

class twisted.internet.interfaces.IReactorUDP(Interface): (source)

Known implementations: twisted.internet.iocpreactor.reactor.IOCPReactor, twisted.internet.posixbase.PosixReactorBase

View In Hierarchy

UDP socket methods.

Method listenUDP Connects a given DatagramProtocol to the given numeric UDP port.
def listenUDP(port, protocol, interface, maxPacketSize): (source)

Connects a given DatagramProtocol to the given numeric UDP port.

ParametersportA port number on which to listen. (type: int)
protocolA DatagramProtocol instance which will be connected to the given port. (type: DatagramProtocol)
interfaceThe local IPv4 or IPv6 address to which to bind; defaults to '', ie all IPv4 addresses. (type: str)
maxPacketSizeThe maximum packet size to accept. (type: int)
Returnsobject which provides IListeningPort. (type: IListeningPort)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.