workerman网络分析

最后更新于:2022-04-02 04:33:18

## workerman 网络分析 **author: xiak** **last update: 2021-12-20 10:11:11** ---- [TOC=3,8] ---- 网络连接分析: send close destroy baseWrite baseRead pipe pauseRecv server Workerman\Connection\TcpConnection client Workerman\Connection\AsyncTcpConnection ---- ### 二进制操作 ```php websocketType; // echo $_t; // 0x8 close // 0x9 ping // 0xa ping // "\x8a" 138 10001010 // $conn->websocketType = "\x8a"; // $conn->websocketType = "\x8a"; ~~~ [使用Websocket实现消息推送(心跳)_ttdevs-CSDN博客_websocket心跳](https://blog.csdn.net/ttdevs/article/details/62887058) [(websocket)协议中Ping Pong,Socket通讯ping pong(长连接),心跳包_ShareUs的专栏-CSDN博客_ping pong 协议](https://blog.csdn.net/ShareUs/article/details/85246287?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-1.no_search_link&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-1.no_search_link&utm_relevant_index=2) [WebSocket协议深入探究 - 知乎](https://zhuanlan.zhihu.com/p/32731137) > ping 应该是%x9 作者写错了一下 [定时器最大可以设置成多久执行一次?-workerman社区](https://www.workerman.net/q/1270)
';