TCP工具客户端发送数据为:
aa aa 00 01 02 02 02 02 00 64 02 07 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 55 55
WORKERMAN 协议 INPUT里面输出:
Array
(
=> aaaa000102020202006402071212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212120202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020205
)
INPUT代码:
public static function input($buffer, TcpConnection $connection){
print_r(unpack("H*",$buffer));
环境:Workerman version:3.3.9 PHP version:7.1.5
WINDOWS 环境测试,之前一直用PHP7.0一直正常的,刚把PHP换成了7.1.6,测试数据错误,再换回7.0也同样错误的,现在都还原不回来了不知道有哪个兄弟有碰到过这种情况没?有什么好的解决办法么?
workerman不会转换数据,应该是客户端发来的数据就是这样的。
谢谢你的回复,经过反复测试确实是客户端的测试工具存在问题,
好的