Test proxy factory that keeps the last created protocol instance.

Instance Variable protoInstance the last instance of the protocol. (type: portforward.ProxyServer)
Instance Variable clientFactoryInstance client factory used by protoInstance to create forward connections. (type: TestableProxyClientFactory)
Method buildProtocol Create the protocol instance, keeps track of it, and makes it use clientFactoryInstance as client factory.

Inherited from ProxyFactory:

Method __init__ Undocumented

Inherited from Factory (via ProxyFactory):

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.
protoInstance =
the last instance of the protocol. (type: portforward.ProxyServer)
clientFactoryInstance =
client factory used by protoInstance to create forward connections. (type: TestableProxyClientFactory)
def buildProtocol(self, addr):

Create the protocol instance, keeps track of it, and makes it use clientFactoryInstance as client factory.

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