Implements interfaces: twisted.internet.interfaces.IReactorUDP

An IReactorTime and IReactorUDP provider.

Time is controlled deterministically via the base class, Clock. UDP is handled in-memory by connecting protocols to instances of MemoryDatagramTransport.

Instance Variable udpPorts A dict mapping port numbers to instances of MemoryDatagramTransport.
Method __init__ Undocumented
Method listenUDP Pretend to bind a UDP port and connect the given protocol to it.

Inherited from Clock:

Method seconds Pretend to be time.time(). This is used internally when an operation such as IDelayedCall.reset needs to determine a time value relative to the current time.
Method callLater See twisted.internet.interfaces.IReactorTime.callLater.
Method getDelayedCalls See twisted.internet.interfaces.IReactorTime.getDelayedCalls
Method advance Move time on this clock forward by the given amount and run whatever pending calls should be run.
Method pump Advance incrementally by the given set of times.
Method _sortCalls Sort the pending calls according to the time they are scheduled.
udpPorts =
A dict mapping port numbers to instances of MemoryDatagramTransport.
def __init__(self):
Undocumented
def listenUDP(self, port, protocol, interface='', maxPacketSize=8192):

Pretend to bind a UDP port and connect the given protocol to it.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.