views:

105

answers:

2

Is there an equivalent to Python's Twisted available in Ruby to abstract common networking protocols and make dealing with TCP/IP sockets generally easier?

+7  A: 

EventMachine

Farrel
+2  A: 

EventMachine is what you want. It is based off of Twisted in many ways but is not a direct port as it seems to do a fair job of embodying Ruby idiom. If you are interested, the two have influenced a JavaScript library called Node.js which is gaining some publicity.

yonkeltron
http://rubyeventmachine.com/
Sam C