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 2016-05-18 16:01:36.