buildProtocol ( self, addr )
Create an instance of a subclass of Protocol.
The returned instance will handle input on an incoming server
connection, and an attribute "factory" pointing to the creating
factory. If None is returned, the connection is assumed to have
been refused, and the Port will close the connection.
Override this method to alter how Protocol instances get created.
TODO:
Document addr argument -- what format is it in?
Is the phrase "incoming server connection" correct when Factory
is a ClientFactory?
|