class documentation

class ConnectionNotifyServerFactory(pb.PBServerFactory): (source)

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.

Method __init__ Initialize the factory.
Method clientConnectionMade Store the protocol and fire the connection deferred.
Instance Variable connectionMade the deferred fired upon connection.
Instance Variable protocolInstance the last protocol instance.

Inherited from PBServerFactory:

Method buildProtocol Return a Broker attached to the factory (as the service provider).
Instance Variable root Undocumented
Instance Variable security Undocumented
Instance Variable unsafeTracebacks Undocumented

Inherited from Factory (via PBServerFactory, ServerFactory):

Class Method forProtocol Create a factory for the given protocol.
Method doStart Make sure startFactory is called.
Method doStop Make sure stopFactory is called.
Method logPrefix Describe this factory for log messages.
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.
Class Variable noisy Undocumented
Class Variable protocol Undocumented
Instance Variable numPorts Undocumented
def __init__(self, root): (source)

Initialize the factory.

def clientConnectionMade(self, protocol): (source)

Store the protocol and fire the connection deferred.

connectionMade: Deferred = (source)

the deferred fired upon connection.

protocolInstance: pb.Broker = (source)

the last protocol instance.