Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Ruby have an equivalent of Python's twisted framework as a networking abstraction layer?

From my understanding, Python's twisted framework provides a higher-level abstraction for networking communications (?).

I am looking for a Ruby equivalent of twisted to use in a Rails application.

like image 302
carson welsh Avatar asked May 27 '09 18:05

carson welsh


People also ask

What is Python twisted used for?

Twisted is an open source network framework written entirely in Python. It allows you to create a SMTP, HTTP, proxy and ssh servers (and more) in Python with minimal effort.

What is twisted module in Python?

Twisted is an event-based framework for internet applications, supporting Python 3.6+. It includes modules for many different purposes, including the following: twisted. web: HTTP clients and servers, HTML templating, and a WSGI server. twisted.

What is twisted networking?

Twisted is a framework for writing asynchronous, event-driven networked programs in Python -- both clients and servers. In addition to abstractions for low-level system calls like select(2) and socket(2) , it also includes a large number of utility functions and classes, which make writing new servers easy.

What is event-driven networking engine?

Twisted is an event-driven network engine. Its more general than CMS-like frameworks such as Flask or Django. You can create many network applications including a custom server, low level sockets echo client, Bit-torrent client or even create a mail client.


1 Answers

Take a look at EventMachine. It's not as extensive as Twisted but it's built around the same concepts of event-driven network programming.

like image 170
Pafjo Avatar answered Oct 05 '22 10:10

Pafjo