class documentation

class twisted.internet.protocol._InstanceFactory(ClientFactory): (source)

View In Hierarchy

Factory used by ClientCreator.

Instance Variable deferred The Deferred which represents this connection attempt and which will be fired when it succeeds or fails.
Instance Variable pending After a connection attempt succeeds or fails, a delayed call which will fire the Deferred representing this connection attempt.
Class Variable noisy Undocumented
Method __init__ Undocumented
Instance Variable reactor Undocumented
Instance Variable instance Undocumented
Method __repr__ Undocumented
Method buildProtocol Return the pre-constructed protocol instance and arrange to fire the waiting Deferred to indicate success establishing the connection.
Method clientConnectionFailed Arrange to fire the waiting Deferred with the given failure to indicate the connection could not be established.
Method fire Clear self.pending to avoid a reference cycle and then invoke func with the value.

Inherited from ClientFactory:

Method startedConnecting Called when a connection has been started.
Method clientConnectionLost Called when an established connection is lost.

Inherited from Factory (via ClientFactory):

Class Variable protocol Undocumented
Instance Variable numPorts Undocumented
Class Method forProtocol Create a factory for the given protocol.
Method logPrefix Describe this factory for log messages.
Method doStart Make sure startFactory is called.
Method doStop Make sure stopFactory is called.
Method startFactory This will be called before I begin listening on a Port or Connector.
Method stopFactory This will be called before I stop listening on all Ports/Connectors.
deferred = (source)
The Deferred which represents this connection attempt and which will be fired when it succeeds or fails.
pending = (source)
After a connection attempt succeeds or fails, a delayed call which will fire the Deferred representing this connection attempt.
noisy = (source)

Undocumented

(type: bool)
def __init__(self, reactor, instance, deferred): (source)

Undocumented

reactor = (source)

Undocumented

instance = (source)

Undocumented

def __repr__(self): (source)

Undocumented

ReturnsUndocumented (type: str)
def buildProtocol(self, addr): (source)

Return the pre-constructed protocol instance and arrange to fire the waiting Deferred to indicate success establishing the connection.

def clientConnectionFailed(self, connector, reason): (source)

Arrange to fire the waiting Deferred with the given failure to indicate the connection could not be established.

def fire(self, func, value): (source)

Clear self.pending to avoid a reference cycle and then invoke func with the value.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.