array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'function.swoole-event-add.php', 1 => 'swoole_event_add', 2 => 'Add new callback functions of a socket into the EventLoop', ), 'up' => array ( 0 => 'ref.swoole-funcs.php', 1 => 'Swoole Funzioni', ), 'prev' => array ( 0 => 'function.swoole-error-log.php', 1 => 'swoole_error_log', ), 'next' => array ( 0 => 'function.swoole-event-defer.php', 1 => 'swoole_event_defer', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/functions/swoole-event-add.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

swoole_event_add

(PECL swoole >= 1.9.0)

swoole_event_addAdd new callback functions of a socket into the EventLoop

Descrizione

swoole_event_add(
    int $fd,
    callable $read_callback = ?,
    callable $write_callback = ?,
    int $events = 0
): int

Elenco dei parametri

fd

read_callback

write_callback

events

Valori restituiti