twisted.internet.test.test_udp_internals.StringUDPSocket(object) class documentationtwisted.internet.test.test_udp_internals
(View In Hierarchy)
A fake UDP socket object, which returns a fixed sequence of strings and/or socket errors. Useful for testing.
| Instance Variable | retvals | A listcontaining either strings orsocket.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. |