[ann] em-ruby-sockets

40 views
Skip to first unread message

Iñaki Baz Castillo

unread,
Apr 14, 2012, 8:44:53 AM4/14/12
to eventm...@googlegroups.com
Hi all, I'm starting a EM library called em-ruby-sockets:

https://github.com/ibc/em-ruby-sockets


Overview:

em-ruby-sockets brings Ruby TCP, TLS and UDP sockets to EventMachine.
EventMachine already offers TCP, TLS and UDP sockets at C++ level, but in
certain cases they may be not flexible enough (for example the TLS feature
in EventMachine is hardcoded at C++ level and offers very little
flexibility, i.e.
it does not let you to choose whether to use SSLv3 or TLSv1 version for your
TLS client or server connections).

By using em-ruby-sockets you get full access to the underlying Ruby socket
and can set it with custom properties (all those implemented by the Ruby
socket class).

Classes within em-ruby-sockets provide an interface very similar to
EventMachine::Connection class.

For full Yard documentation take a look to
http://rubydoc.info/gems/em-ruby-sockets/frames/.


TODO: Still a lot of work to do. For now just the
EM::RubySockets::TcpClient object is implemented (along with
EM::RubySockets::tcp_connect() method). Prior to starting implementing
the remaining clases (TcpServer, TlsClient, TlsServer, UdpSocket) I
would appreciate some feedback on the concept itself of this library.


Thanks a lot.

--
Iñaki Baz Castillo
<i...@aliax.net>

Reply all
Reply to author
Forward
0 new messages