Module EventMachine
In: lib/cool.io/eventmachine.rb

EventMachine emulation for Cool.io:

  require 'coolio/eventmachine'

Drawbacks: slightly slower than EM. Benefits: timers are more accurate using libev than using EM TODO: some things like connection timeouts aren‘t implemented yet DONE: timers and normal socket functions are implemented.

Methods

Classes and Modules

Class EventMachine::CallsBackToEM
Class EventMachine::Connection
Class EventMachine::OneShotEMTimer

Public Class methods

ltodo: use Coolio‘s PeriodicTimer to wrap EM‘s two similar to it todo: close all connections on ‘stop’, I believe

Compatibility noop. Handled automatically by libev

Compatibility noop. Handled automatically by libev

Start the Reactor loop

Set the maximum number of descriptors available to this process

Start a TCP server on the given address and port

Stop the Reactor loop

[Validate]