background preloader


Facebook Twitter

Eventmachine @ GitHub. Node.js. Node.js IDEs. Tutorials and books about node.js. Twisted. Twisted is an event-driven networking engine written in Python and licensed under the open source ​MIT license. Twisted makes it easy to implement custom network applications. Here's a TCP server that echoes back everything that's written to it: from twisted.internet import protocol, reactor, endpoints class Echo(protocol.Protocol): def dataReceived(self, data): self.transport.write(data) class EchoFactory(protocol.Factory): def buildProtocol(self, addr): return Echo() endpoints.serverFromString(reactor, "tcp:1234").listen(EchoFactory())