文件名称:swoole:swoole库
文件大小:34KB
文件格式:ZIP
更新时间:2024-05-21 13:53:57
swoole PHP
SWOOLE swoole library 环境依赖 Swoole 1.8.x+ PHP 5.4+ Composer Install Install composer curl -sS https://getcomposer.org/installer | php Install swoole cd swoole-src phpize ./configure make && make install 安装 composer require "longxinh/swoole:dev-master" 使用 TCP Server 服务继承 \Swoole\Server\Tcp doWork(swoole_server $server, int $fd, int $from_id, string $data) 方法, 服务在接收 onReceive 事件回调时会调用 doWork 方法执行自定义
【文件预览】:
swoole-master
----src()
--------CallBack()
--------Protocols()
--------Cache()
--------Tool.php(336B)
--------Service()
--------Packet()
--------Client()
--------Console()
--------Server()
----examples()
--------service()
--------client()
--------monitor()
----LICENSE(1KB)
----README.md(5KB)
----.gitignore(39B)
----composer.json(648B)