Class Rev::IOWatcher
In: ext/rev/rev_buffer.c
lib/rev/io_watcher.rb
lib/rev/timer_watcher.rb
Parent: Rev::Watcher

Rev::IOWatcher monitors Ruby IO objects for readability or writability. This allows your application to block while the kernel is writing out data and fill the read or write buffer whenever there is space available. It‘s used by the Rev::BufferedIO class to provide high performace I/O which is bound by the kernel‘s ability to read and write data.

Methods

attach   detach   disable   enable   new   on_readable   on_writable  

Public Class methods

Public Instance methods

Attach the IO watcher to the given Rev::Loop. If the watcher is already attached to a loop, detach it from the old one and attach it to the new one.

Detach the IO watcher from its current Rev::Loop.

Temporarily disable an IO watcher which is attached to a loop. This is useful if you wish to toggle event monitoring on and off.

Re-enable an IO watcher which has been temporarily disabled. See the disable method for a more thorough explanation.

Called whenever the IO object associated with the IOWatcher is readable

Called whenever the IO object associated with the IOWatcher is writable

[Validate]