class documentation

class TestableProxyFactory(portforward.ProxyFactory): (source)

View In Hierarchy

Test proxy factory that keeps the last created protocol instance.

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

Inherited from ProxyFactory:

Method __init__ Undocumented
Instance Variable host Undocumented
Instance Variable port Undocumented

Inherited from Factory (via ProxyFactory):

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 buildProtocol(self, addr): (source)

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

client factory used by protoInstance to create forward connections.

the last instance of the protocol.