twisted.internet.protocol.Factory.forProtocol(cls, protocol, *args, **kwargs)
twisted.internet.protocol.Factory
Create a factory for the given protocol.
It sets the protocol attribute and returns the constructed factory instance.
protocol
Protocol
Factory