class documentation

Mixin for factories which create AccumulatingProtocol instances.

Method __init__ Undocumented
Method buildProtocol Create a AccumulatingProtocol and set it up to be able to perform callbacks.
Instance Variable called A counter which is incremented each time buildProtocol is called.
Instance Variable peerAddresses A list of the addresses passed to buildProtocol.
Instance Variable protocol The most recently created AccumulatingProtocol instance which was returned from buildProtocol.
Instance Variable protocolConnectionLost When an instance of AccumulatingProtocol is created, this will be set as its closedDeferred attribute and then this attribute will be set to None so the defer.Deferred is not used by more than one protocol.
Instance Variable protocolConnectionMade When an instance of AccumulatingProtocol is connected, if this is not None, the Deferred will be called back with the protocol instance and the attribute set to None.
Instance Variable protocolFactory Factory for protocols - takes the place of the typical protocol attribute of factories (but that name is used by this class for something else).
def __init__(self): (source)

Undocumented

def buildProtocol(self, addr): (source)

Create a AccumulatingProtocol and set it up to be able to perform callbacks.

called: int = (source)

A counter which is incremented each time buildProtocol is called.

peerAddresses: list = (source)

A list of the addresses passed to buildProtocol.

protocol = (source)

The most recently created AccumulatingProtocol instance which was returned from buildProtocol.

protocolConnectionLost: None or defer.Deferred = (source)

When an instance of AccumulatingProtocol is created, this will be set as its closedDeferred attribute and then this attribute will be set to None so the defer.Deferred is not used by more than one protocol.

protocolConnectionMade: None or defer.Deferred = (source)

When an instance of AccumulatingProtocol is connected, if this is not None, the Deferred will be called back with the protocol instance and the attribute set to None.

protocolFactory: no-argument callable = (source)

Factory for protocols - takes the place of the typical protocol attribute of factories (but that name is used by this class for something else).