A fake UDP socket object, which returns a fixed sequence of strings and/or socket errors. Useful for testing.

Instance Variable retvals A list containing either strings or socket.errors.
Instance Variable connectedAddr The address the socket is connected to.
Method __init__ Undocumented
Method connect Undocumented
Method recvfrom Return (or raise) the next value from self.retvals.
retvals =
A list containing either strings or socket.errors.
connectedAddr =
The address the socket is connected to.
def __init__(self, retvals):
Undocumented
def connect(self, addr):
Undocumented
def recvfrom(self, size):

Return (or raise) the next value from self.retvals.

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