English | 简体中文 | 繁體中文
查询

Swoole\Event::add()函数—用法及示例

「 在EventLoop中添加新的套接字回调函数。 」


(PECL swoole >= 1.9.0)

Swoole\Event::add — 在EventLoop中添加新的套接字回调函数。

说明
public static Swoole\Event::add(
    int $fd,
    callable $read_callback,
    callable $write_callback = ?,
    string $events = ?
): bool

参数
fd
read_callback
write_callback
events
返回值
补充纠错
热门PHP函数
分享链接