Package foolscap :: Module pb :: Class UnauthenticatedTub
[hide private]
[frames] | no frames]

Class UnauthenticatedTub

source code

 twisted.application.service.Service --+        
                                       |        
twisted.application.service.MultiService --+    
                                           |    
                                         Tub --+
                                               |
                                              UnauthenticatedTub

Nested Classes [hide private]

Inherited from Tub: brokerClass, negotiationClass

Instance Methods [hide private]
 
__init__(self, tubID=None, options={}) source code
 
getTubID(self) source code
 
getShortTubID(self) source code

Inherited from Tub: __repr__, brokerAttached, brokerDetached, buildURL, clone, connectTo, connectionFailed, connectorFinished, connectorStarted, createCertificate, debug_listBrokers, generateSwissnumber, getBrokerForTubRef, getCertData, getIncarnationString, getListeners, getLogPort, getLogPortFURL, getOrCreateURLForReference, getReference, getReferenceForName, getReferenceForURL, listenOn, log, make_incarnation, registerNameLookupHandler, registerReference, revokeReference, serialize, setLocation, setLocationAutomatically, setLogGathererFURL, setLogGathererFURLFile, setLogPortFURLFile, setOption, setup, setupEncryption, setupEncryptionFile, startService, stopListeningOn, stopService, unregisterNameLookupHandler, unregisterReference, unregisterURL, unserialize

Inherited from twisted.application.service.MultiService: __iter__, addService, getServiceNamed, privilegedStartService, removeService

Inherited from twisted.application.service.Service: __getstate__, __providedBy__, disownServiceParent, setName, setServiceParent

Class Variables [hide private]
  encrypted = False

Inherited from Tub: NAMEBITS, TUBIDBITS, __implemented__, __provides__, debugBanana, disconnectTimeout, keepaliveTimeout, logLocalFailures, logRemoteFailures, unsafeTracebacks

Inherited from twisted.application.service.Service: name, parent, running

Instance Variables [hide private]

Inherited from Tub: brokers, listeners, nameToReference, referenceToName, tubID

Method Details [hide private]

__init__(self, tubID=None, options={})
(Constructor)

source code 
Parameters:
  • certData - if provided, use it as a certificate rather than generating a new one. This is a PEM-encoded private/public keypair, as returned by Tub.getCertData()
  • certFile - if provided, the Tub will store its certificate in this file. If the file does not exist when the Tub is created, the Tub will generate a new certificate and store it here. If the file does exist, the certificate will be loaded from this file.

    The simplest way to use the Tub is to choose a long-term location for the certificate, use certFile= to tell the Tub about it, and then let the Tub manage its own certificate.

    You may provide certData, or certFile, (or neither), but not both.

  • options - a dictionary of options that can influence connection connection negotiation. Currently defined keys are:
    • debug_slow: if True, wait half a second between each negotiation response
Overrides: twisted.application.service.MultiService.__init__

getTubID(self)

source code 
Overrides: Tub.getTubID

getShortTubID(self)

source code 
Overrides: Tub.getShortTubID