array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'function.swoole-event-set.php', 1 => 'swoole_event_set', 2 => 'Update the event callback functions of a socket', ), 'up' => array ( 0 => 'ref.swoole-funcs.php', 1 => 'Swoole Funzioni', ), 'prev' => array ( 0 => 'function.swoole-event-exit.php', 1 => 'swoole_event_exit', ), 'next' => array ( 0 => 'function.swoole-event-wait.php', 1 => 'swoole_event_wait', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/functions/swoole-event-set.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

swoole_event_set

(PECL swoole >= 1.9.0)

swoole_event_setUpdate the event callback functions of a socket

Descrizione

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

Elenco dei parametri

fd

read_callback

write_callback

events

Valori restituiti