class documentation

class _InstanceFactory(ClientFactory): (source)

View In Hierarchy

Factory used by ClientCreator.
Method __init__ Undocumented
Method __repr__ Undocumented
Method build​Protocol Return the pre-constructed protocol instance and arrange to fire the waiting Deferred to indicate success establishing the connection.
Method client​Connection​Failed 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.
Class Variable noisy Undocumented
Instance Variable deferred The Deferred which represents this connection attempt and which will be fired when it succeeds or fails.
Instance Variable instance Undocumented
Instance Variable pending After a connection attempt succeeds or fails, a delayed call which will fire the Deferred representing this connection attempt.
Instance Variable reactor Undocumented

Inherited from ClientFactory:

Method client​Connection​Lost Called when an established connection is lost.
Method started​Connecting Called when a connection has been started.

Inherited from Factory (via ClientFactory):

Class Method for​Protocol Create a factory for the given protocol.
Method do​Start Make sure startFactory is called.
Method do​Stop Make sure stopFactory is called.
Method log​Prefix Describe this factory for log messages.
Method start​Factory This will be called before I begin listening on a Port or Connector.
Method stop​Factory This will be called before I stop listening on all Ports/Connectors.
Class Variable protocol Undocumented
Instance Variable num​Ports Undocumented
def __init__(self, reactor, instance, deferred): (source)

Undocumented

def __repr__(self): (source)

Undocumented

Returns
strUndocumented
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.
deferred = (source)
The Deferred which represents this connection attempt and which will be fired when it succeeds or fails.
instance = (source)

Undocumented

pending = (source)
After a connection attempt succeeds or fails, a delayed call which will fire the Deferred representing this connection attempt.
reactor = (source)

Undocumented