[Twisted-Python] Another Change to Factory.buildProtocol

Aug. 7, 2001
1:51 p.m.
def buildProtocol(self, connection): """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. Override this method to alter how Protocol instances get created. """ p = self.protocol() p.factory = self + p.connection = connection return p -- Moshe Zadka - http://moshez.geek (if you're not cool, http://moshez.org is still working)
8620
Age (days ago)
8620
Last active (days ago)
0 comments
1 participants
participants (1)
-
Moshe Zadka