Menu

Reference / Io\Poll

Event

enum
enum Event

A readiness event a {@see Watcher} asks for or reports.

Read, Write, Error, HangUp and ReadHangUp are readiness conditions. OneShot and EdgeTriggered are watch modes, requested in Context::add() or Watcher::modify().

Cases

ReadThe handle is readable.
WriteThe handle is writable.
ErrorAn error condition occurred on the handle.
HangUpThe peer hung up.
ReadHangUpThe peer closed its writing side.
OneShotWatch mode: report the handle once.
EdgeTriggeredWatch mode: report changes of readiness instead of the level.

View source