Package viff :: Module runtime :: Class SelfShareExchangerFactory
[hide private]
[frames] | no frames]

Class SelfShareExchangerFactory

source code


Factory for creating SelfShareExchanger protocols.
Nested Classes [hide private]
  protocol
Instance Methods [hide private]
 
__init__(self, runtime)
Initialize the factory.
source code
 
identify_peer(self, protocol) source code
 
clientConnectionLost(self, connector, reason)
Called when an established connection is lost.
source code

Inherited from twisted.internet.protocol.ReconnectingClientFactory: clientConnectionFailed, resetDelay, retry, stopTrying

Inherited from twisted.internet.protocol.ClientFactory: startedConnecting

Inherited from twisted.internet.protocol.Factory: __providedBy__, buildProtocol, doStart, doStop, startFactory, stopFactory

Class Variables [hide private]
  maxDelay = 3
Maximum number of seconds between connection attempts.
  factor = 1.234567
a multiplicitive factor by which the delay grows

Inherited from twisted.internet.protocol.ReconnectingClientFactory: connector, continueTrying, delay, maxRetries, retries

Inherited from twisted.internet.protocol.ReconnectingClientFactory (private): _callID

Inherited from twisted.internet.protocol.Factory: __implemented__, __provides__, noisy, numPorts

Instance Variables [hide private]

Inherited from twisted.internet.protocol.ReconnectingClientFactory: initialDelay, jitter

Method Details [hide private]

clientConnectionLost(self, connector, reason)

source code 

Called when an established connection is lost.

It may be useful to call connector.connect() - this will reconnect.

Overrides: twisted.internet.protocol.ClientFactory.clientConnectionLost
(inherited documentation)