class documentation

class ConnectionCompleter:

Constructor: ConnectionCompleter(memoryReactor)

View In Hierarchy

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 failOnce Fail a single TCP connection established on this ConnectionCompleter's MemoryReactor.
Method succeedOnce Complete a single TCP connection established on this ConnectionCompleter's MemoryReactor.
Instance Variable _reactor Undocumented
def __init__(self, memoryReactor):

Create a ConnectionCompleter from a MemoryReactor.

Parameters
memoryReactor:MemoryReactorThe reactor to attach to.
def failOnce(self, reason=Failure(ConnectionRefusedError())):

Fail a single TCP connection established on this ConnectionCompleter's MemoryReactor.

Parameters
reason:Failurethe reason to provide that the connection failed.
def succeedOnce(self, debug=False):

Complete a single TCP connection established on this ConnectionCompleter's MemoryReactor.

Parameters
debug:boolA flag; whether to dump output from the established connection to stdout.
Returns
IOPump or Nonea pump for the connection, or None if no connection could be established.
_reactor =

Undocumented