interface documentation

class 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.
Parameters
port:intA port number on which to listen.
protocol:DatagramProtocolA DatagramProtocol instance which will be connected to the given port.
interface:strThe local IPv4 or IPv6 address to which to bind; defaults to '', ie all IPv4 addresses.
maxPacketSize:intThe maximum packet size to accept.
Returns
IListeningPortobject which provides IListeningPort.