Package twisted :: Package spread :: Module pb :: Class PBServerFactory
[frames | no frames]

Class PBServerFactory

  Factory --+    
            |    
ServerFactory --+
                |
               PBServerFactory


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.
Method Summary
  __init__(self, portal)
  buildProtocol(self, addr)
Return a Broker attached to me (as the service provider).
  clientConnectionMade(self, protocol)
    Inherited from Factory
  doStart(self)
Make sure startFactory is called.
  doStop(self)
Make sure stopFactory is called.
  startFactory(self)
This will be called before I begin listening on a Port or Connector.
  stopFactory(self)
This will be called before I stop listening on all Ports/Connectors.

Class Variable Summary
    Inherited from Factory
tuple __implements__ = (<class twisted.internet.interfaces.IPr...
str noisy = 'sure, why not'
int numPorts = 0                                                                     
NoneType protocol = None                                                                  

Method Details

buildProtocol(self, addr)

Return a Broker attached to me (as the service provider).
Overrides:
twisted.internet.protocol.Factory.buildProtocol

Generated by Epydoc 2.0 on Sat Sep 13 04:20:36 2003 http://epydoc.sf.net