![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Swoole
sHuXnHs
这个作者很懒,什么都没留下…
展开
-
Swoole-网络通信引擎TCP
Server端 介绍 面向过程实现 <?php /** * User: sHuXnHs <hexiaohongsun@gmail.com> * Date: 19-7-12 * Time: 12:34 */ //创建Server对象,监听 127.0.0.1:9501端口 $serv = new swoole_server("127.0.0.1", 9501); // ...原创 2019-07-12 01:04:21 · 338 阅读 · 0 评论 -
Swoole-网络通信引擎UDP
Server UDP服务器创建与TCP服务器创建类型,但不同的是:UDP没有连接的概念。启动Server后,客户端无需Connect,直接可以向Server监听的9502端口发送数据包。对应的事件为onPacket。 <?php /** * User: sHuXnHs <hexiaohongsun@gmail.com> * Date: 19-7-12 * Time: 1...原创 2019-07-17 16:43:32 · 152 阅读 · 0 评论 -
Swoole-网络通信引擎HTTP
WRITING原创 2019-07-17 17:03:49 · 335 阅读 · 0 评论