swoole_event_add

Add new callback functions of a socket into the EventLoop

説明

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

パラメータ

fd

read_callback

write_callback

events

戻り値