Implements interfaces: twisted.internet.interfaces.IReactorSocket, twisted.internet.interfaces.IReactorSSL, twisted.internet.interfaces.IReactorTCP, twisted.internet.interfaces.IReactorUNIX

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

Instance Variable _listenException An instance of an Exception
Instance Variable _connectException An instance of an Exception
Method __init__
Method adoptStreamPort Fake IReactorSocket.adoptStreamPort, that raises self._listenException.
Method listenTCP Fake reactor.listenTCP, that raises self._listenException.
Method connectTCP Fake reactor.connectTCP, that raises self._connectException.
Method listenSSL Fake reactor.listenSSL, that raises self._listenException.
Method connectSSL Fake reactor.connectSSL, that raises self._connectException.
Method listenUNIX Fake reactor.listenUNIX, that raises self._listenException.
Method connectUNIX Fake reactor.connectUNIX, that raises self._connectException.
_listenException =
An instance of an Exception
_connectException =
An instance of an Exception
def __init__(self, listenException=None, connectException=None): (source)
ParameterslistenExceptionAn 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 adoptStreamPort(self, fileno, addressFamily, factory): (source)

Fake IReactorSocket.adoptStreamPort, that raises self._listenException.

def listenTCP(self, port, factory, backlog=50, interface=''): (source)

Fake reactor.listenTCP, that raises self._listenException.

def connectTCP(self, host, port, factory, timeout=30, bindAddress=None): (source)

Fake reactor.connectTCP, that raises self._connectException.

def listenSSL(self, port, factory, contextFactory, backlog=50, interface=''): (source)

Fake reactor.listenSSL, that raises self._listenException.

def connectSSL(self, host, port, factory, contextFactory, timeout=30, bindAddress=None): (source)

Fake reactor.connectSSL, that raises self._connectException.

def listenUNIX(self, address, factory, backlog=50, mode=438, wantPID=0): (source)

Fake reactor.listenUNIX, that raises self._listenException.

def connectUNIX(self, address, factory, timeout=30, checkPID=0): (source)

Fake reactor.connectUNIX, that raises self._connectException.

API Documentation for Twisted, generated by pydoctor at 2015-11-29 11:40:45.