array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'evio.construct.php', 1 => 'EvIo::__construct', ), 'up' => array ( 0 => 'class.evio.php', 1 => 'EvIo', ), 'prev' => array ( 0 => 'class.evio.php', 1 => 'EvIo', ), 'next' => array ( 0 => 'evio.createstopped.php', 1 => 'EvIo::createStopped', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ev/evio/construct.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ev >= 0.2.0)
EvIo::__construct — Constructs EvIo watcher object
$fd
,$events
,$callback
,$data
= ?,$priority
= ?Constructs EvIo watcher object and starts the watcher automatically.
fd
Can be a stream opened with fopen() or similar functions, numeric file descriptor, or socket.
events
Ev::READ
and/or
Ev::WRITE
. See
the bit masks
.
callback
See Watcher callbacks .
data
Custom data associated with the watcher.
priority