class twisted.spread.pb.PBServerFactory(protocol.ServerFactory): (source)
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.
Instance Variable | unsafeTracebacks | Undocumented |
Method | __init__ | |
Instance Variable | root | Undocumented |
Instance Variable | security | Undocumented |
Method | buildProtocol | Return a Broker attached to the factory (as the service provider). |
Method | clientConnectionMade | Undocumented |
Inherited from Factory (via ServerFactory):
Class Variable | protocol | Undocumented |
Instance Variable | numPorts | Undocumented |
Class Variable | noisy | Undocumented |
Class Method | forProtocol | Create a factory for the given protocol. |
Method | logPrefix | Describe this factory for log messages. |
Method | doStart | Make sure startFactory is called. |
Method | doStop | Make sure stopFactory is called. |
Method | startFactory | This will be called before I begin listening on a Port or Connector. |
Method | stopFactory | This will be called before I stop listening on all Ports/Connectors. |
Parameters | root | factory providing the root Referenceable used by the broker. (type: object providing or adaptable to IPBRoot .) |
unsafeTracebacks | if set, tracebacks for exceptions will be sent over the wire. (type: bool ) | |
security | security options used by the broker, default to globalSecurity . (type: twisted.spread.jelly.SecurityOptions ) |
Return a Broker attached to the factory (as the service provider).