twisted.spread.test.test_pb.ConnectionNotifyServerFactory(pb.PBServerFactory)
class documentationtwisted.spread.test.test_pb
(View In Hierarchy)
A server factory which stores the last connection and fires a Deferred
on
connection made. This factory can handle only one client connection.
Instance Variable | protocolInstance | the last protocol instance. (type: pb.Broker ) |
Instance Variable | connectionMade | the deferred fired upon connection. (type: Deferred ) |
Method | __init__ | Initialize the factory. |
Method | clientConnectionMade | Store the protocol and fire the connection deferred. |
Inherited from PBServerFactory:
Method | buildProtocol | Return a Broker attached to the factory (as the service provider). |
Inherited from Factory (via PBServerFactory, ServerFactory):
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. |