首页 诗词 名句 诗人 飞花令 诗单 诗词游戏 古籍 文学 成语 字典 词典 谜语 教育学习
查询

swoole_event_add()函数—用法及示例

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


适用版本(PECL swoole >= 1.9.0)

swoole_event_add — 在EventLoop中添加新的套接字回调函数

说明
swoole_event_add(
    int $fd,
    callable $read_callback = ?,
    callable $write_callback = ?,
    int $events = 0
): int
参数
fd
read_callback
write_callback
events
返回值
上一个函数: swoole_event_defer()函数
下一个函数: swoole_error_log()函数
热门PHP函数
汉字笔顺