t.i.p.F.forProtocol(cls, protocol, *args, **kwargs) : class method documentation

Part of twisted.internet.protocol.Factory View Source

Create a factory for the given protocol.

It sets the protocol attribute and returns the constructed factory instance.

ParametersprotocolA Protocol subclass
argsPositional arguments for the factory.
kwargsKeyword arguments for the factory.
ReturnsA Factory instance wired up to protocol.
API Documentation for Twisted, generated by pydoctor at 2014-09-18 22:01:49.