= Twisted = Twisted is an event-driven networking engine written in Python and licensed under the open source MIT license. == Install == * su * cd /tmp * wget [[http://twistedmatrix.com/Releases/Twisted/13.1/Twisted-13.1.0.tar.bz2]] * tar xvif Twisted-13.1.0.tar.bz2 * cd Twisted-13.1.0 * python setup.py build * python setup.py install == Test installation == * python * from twisted.internet import protocol, reactor * quit() == Echo server == {{{#!highlight python from twisted.internet import protocol, reactor class Echo(protocol.Protocol): def dataReceived(self, data): self.transport.write(data) class EchoFactory(protocol.Factory): def buildProtocol(self, addr): return Echo() reactor.listenTCP(1234, EchoFactory()) reactor.run() }}}