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.
protocolInstance =
the last protocol instance. (type: pb.Broker)
connectionMade =
the deferred fired upon connection. (type: Deferred)
def __init__(self, root):

Initialize the factory.

def clientConnectionMade(self, protocol):

Store the protocol and fire the connection deferred.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.