class documentation

class StringUDPSocket: (source)

View In Hierarchy

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

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

Undocumented

def connect(self, addr): (source)

Undocumented

def recvfrom(self, size): (source)

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

connectedAddr = (source)

The address the socket is connected to.

A list containing either strings or socket.errors.