class documentation
class MemoryDatagramTransport: (source)
Implements interfaces: twisted.internet.interfaces.IUDPTransport
This IUDPTransport
implementation enforces the usual connection rules and captures sent traffic in a list for later inspection.
Method | __init__ |
Undocumented |
Method | connect |
Connect this transport to the given address. |
Method | get |
Dummy implementation to satisfy IUDPTransport . |
Method | get |
Return the address which this transport is pretending to be bound to. |
Method | set |
Dummy implementation to satisfy IUDPTransport . |
Method | stop |
Shut down this transport. |
Method | write |
Send the given datagram. |
Instance Variable | _connected |
None if this transport is unconnected, otherwise an address to which all traffic is supposedly sent. |
Instance Variable | _host |
The host address to which this transport is bound. |
Instance Variable | _max |
An int giving the maximum length of a datagram which will be successfully handled by write. |
Instance Variable | _protocol |
The protocol connected to this transport. |
Instance Variable | _sent |
A list of two-tuples of the datagrams passed to write and the addresses to which they are destined. |
None
if this transport is unconnected, otherwise an address to which all traffic is supposedly sent.