[ANN] cool.io 1.0.0: a cool event framework for Ruby (formerly knownas Rev)

Discussion in 'Ruby' started by Tony Arcieri, Dec 14, 2010.

  1. Tony Arcieri

    Tony Arcieri Guest

    [Note: parts of this message were removed to make it a legal post.]

    Do you like Sinatra? Do you like Node.js? Wish you could write Node.js apps
    in Ruby as easily as you write Sinatra apps? Let's ask Cool.io how:

    http://coolio.github.com
    https://github.com/tarcieri/cool.io

    Cool.io is a framework for building event-driven applications, namely
    scalable network servers and clients, but also provides out-of-the-box
    support for filesystem monitoring and inter-thread signaling. Cool.io also
    supports a robust event-driven HTTP/1.1 client suitable for creating web
    spiders or other HTTP clients that need to make large numbers of concurrent
    connections.

    Cool.io is built on libev, a fast C-based event library which also provides
    the underpinnings for evented I/O in Node.js. It works on Ruby 1.8.7+,
    1.9.2+, and Rubinius HEAD.

    Cool.io 1.0.0 features a cool new DSL which makes writing evented network
    servers and clients this easy. Here's an example echo server:

    require 'rubygems'
    require 'cool.io'

    ADDR = '127.0.0.1'
    PORT = 4321

    cool.io.server ADDR, PORT do
    on_connect do
    puts "#{remote_addr}:#{remote_port} connected"
    end

    on_close do
    puts "#{remote_addr}:#{remote_port} disconnected"
    end

    on_read do |data|
    write data
    end
    end

    puts "Echo server listening on #{ADDR}:#{PORT}"
    cool.io.run


    For more information, see the home page.

    --
    Tony Arcieri
    Medioh! Kudelski
     
    Tony Arcieri, Dec 14, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tony Arcieri
    Replies:
    6
    Views:
    194
    Tony Arcieri
    Jan 1, 2008
  2. Tony Arcieri
    Replies:
    1
    Views:
    169
    Roger Pack
    Feb 20, 2008
  3. Tony Arcieri
    Replies:
    1
    Views:
    152
    Roger Pack
    Feb 2, 2009
  4. Tony Arcieri
    Replies:
    0
    Views:
    211
    Tony Arcieri
    Oct 15, 2009
  5. Tony Arcieri
    Replies:
    14
    Views:
    485
    Tony Arcieri
    Dec 9, 2010
Loading...

Share This Page