class documentation
class ConnectionCompleter: (source)
A ConnectionCompleter
can cause synthetic TCP connections established by MemoryReactor.connectTCP
and MemoryReactor.listenTCP
to succeed or fail.
Method | __init__ |
Create a ConnectionCompleter from a MemoryReactor . |
Method | fail |
Fail a single TCP connection established on this ConnectionCompleter 's MemoryReactor . |
Method | succeed |
Complete a single TCP connection established on this ConnectionCompleter 's MemoryReactor . |
Instance Variable | _reactor |
Undocumented |
Create a ConnectionCompleter
from a MemoryReactor
.
Parameters | |
memoryMemoryReactor | The reactor to attach to. |
Fail a single TCP connection established on this ConnectionCompleter
's MemoryReactor
.
Parameters | |
reason:Failure | the reason to provide that the connection failed. |
Complete a single TCP connection established on this ConnectionCompleter
's MemoryReactor
.
Parameters | |
debug:bool | A flag; whether to dump output from the established connection to stdout. |
Returns | |
IOPump or None | a pump for the connection, or None if no connection could be established. |