Module Rev
In: lib/rev/buffered_io.rb
lib/rev/dns_resolver.rb
lib/rev/http_client.rb
lib/rev/io_watcher.rb
lib/rev/listener.rb
lib/rev/loop.rb
lib/rev/server.rb
lib/rev/socket.rb
lib/rev/timer_watcher.rb
lib/rev/watcher.rb
lib/rev.rb
ext/rev/rev_buffer.c
ext/rev/rev_ext.c
ext/rev/rev_io_watcher.c
ext/rev/rev_loop.c
ext/rev/rev_timer_watcher.c
ext/rev/rev_watcher.c

Watchers are Rev‘s event observers. They contain a set of callback methods prefixed by on_* which fire whenever events occur.

In order for a watcher to fire events it must be attached to a running loop. Every watcher has an attach and detach method to control which loop it‘s associated with.

Watchers also have an enable and disable method. This allows a watcher to temporarily ignore certain events while remaining attached to a given loop. This is good for watchers which need to be toggled on and off.

Methods

Classes and Modules

Module Rev::HttpEncoding
Class Rev::Buffer
Class Rev::BufferedIO
Class Rev::DNSResolver
Class Rev::HttpChunkHeader
Class Rev::HttpClient
Class Rev::HttpResponseHeader
Class Rev::IOWatcher
Class Rev::Listener
Class Rev::Loop
Class Rev::Server
Class Rev::Socket
Class Rev::TCPListener
Class Rev::TCPServer
Class Rev::TCPSocket
Class Rev::TimerWatcher
Class Rev::UNIXListener
Class Rev::UNIXServer
Class Rev::UNIXSocket
Class Rev::Watcher

Constants

VERSION = '0.1.2' unless defined? Rev::VERSION
LIBEV_VERSION = rb_sprintf("%d.%d", ev_version_major(), ev_version_minor())   Make libev version available in Ruby

Public Class methods

Public Instance methods

[Validate]