class documentation

class PBServerFactory(protocol.ServerFactory): (source)

View In Hierarchy

Server factory for perspective broker.

Login is done using a Portal object, whose realm is expected to return avatars implementing IPerspective. The credential checkers in the portal should accept IUsernameHashedPassword or IUsernameMD5Password.

Alternatively, any object providing or adaptable to IPBRoot can be used instead of a portal to provide the root object of the PB server.

Method __init__
Method build​Protocol Return a Broker attached to the factory (as the service provider).
Method client​Connection​Made Undocumented
Instance Variable root Undocumented
Instance Variable security Undocumented
Instance Variable unsafe​Tracebacks Undocumented

Inherited from Factory (via ServerFactory):

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 noisy Undocumented
Class Variable protocol Undocumented
Instance Variable num​Ports Undocumented
def __init__(self, root, unsafeTracebacks=False, security=globalSecurity): (source)
Parameters
root:object providing or adaptable to IPBRoot.factory providing the root Referenceable used by the broker.
unsafe​Tracebacks:boolif set, tracebacks for exceptions will be sent over the wire.
security:twisted.spread.jelly.SecurityOptionssecurity options used by the broker, default to globalSecurity.
def buildProtocol(self, addr): (source)
Return a Broker attached to the factory (as the service provider).
def clientConnectionMade(self, protocol): (source)

Undocumented

root = (source)

Undocumented

security = (source)

Undocumented

unsafeTracebacks = (source)

Undocumented