Persistent connection in twisted

Without knowing how the snippet you provided links into your internet.XXXServer or reactor.listenXXX (or XXXXEndpoint calls), its hard to make head-or-tails of it, but… First off, in normal use, a twisted protocol.Protocol‘s dataReceived would only be called by the framework itself. It would be linked to a client or server connection directly or via a … Read more