class documentation

A fake reactor to be used in tests. It accepts TCP connection setup attempts, but they will fail.

def __init__(self, listenException=None, connectException=None): (source)
Parameters
listenExceptionAn instance of an Exception to raise when any listen method is called.
connectExceptionAn instance of an Exception to raise when any connect method is called.
def adoptDatagramPort(self, fileDescriptor, addressFamily, protocol, maxPacketSize): (source)
def adoptStreamConnection(self, fileDescriptor, addressFamily, factory): (source)
def adoptStreamPort(self, fileno, addressFamily, factory): (source)
def connectSSL(self, host, port, factory, contextFactory, timeout=30, bindAddress=None): (source)
def connectTCP(self, host, port, factory, timeout=30, bindAddress=None): (source)
def connectUNIX(self, address, factory, timeout=30, checkPID=0): (source)
def listenSSL(self, port, factory, contextFactory, backlog=50, interface=''): (source)
def listenTCP(self, port, factory, backlog=50, interface=''): (source)
def listenUNIX(self, address, factory, backlog=50, mode=438, wantPID=0): (source)
_connectException = (source)

An instance of an Exception

_listenException = (source)

An instance of an Exception