Implements interfaces: twisted.internet.interfaces.IStreamServerEndpoint

In-memory implementation of IStreamServerEndpoint.

Instance Variable result The Deferred resulting from the call to listen, after listen has been called.
Instance Variable factory The factory passed to listen.
Instance Variable cancelException The exception to errback self.result when it is cancelled.
Instance Variable port The IListeningPort which listen's Deferred will fire with.
Instance Variable listenAttempts The number of times listen has been invoked.
Instance Variable failImmediately If set, the exception to fail the Deferred returned from listen before it is returned.
Method __init__ Undocumented
Method listen Return a Deferred and store it for future use. (Implementation of IStreamServerEndpoint).
Method startedListening Test code should invoke this method after causing listen to be invoked in order to fire the Deferred previously returned from listen.
Method stoppedListening No summary
result =
The Deferred resulting from the call to listen, after listen has been called.
factory =
The factory passed to listen.
cancelException =
The exception to errback self.result when it is cancelled.
port =
The IListeningPort which listen's Deferred will fire with.
listenAttempts =
The number of times listen has been invoked.
failImmediately =
If set, the exception to fail the Deferred returned from listen before it is returned.
def __init__(self):
Undocumented
def listen(self, factory):

Return a Deferred and store it for future use. (Implementation of IStreamServerEndpoint).

Parametersfactorythe factory to listen with
Returnsa Deferred stored in FakeServer.result
def startedListening(self):

Test code should invoke this method after causing listen to be invoked in order to fire the Deferred previously returned from listen.

def stoppedListening(self):

Test code should invoke this method after causing stopListening to be invoked on the port fired from the Deferred returned from listen in order to cause the Deferred returned from stopListening to fire.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.