从 IPv6-only的问题 继续讨论:
本引擎为3.9 按照以上方法已经跟新了curl & websocket的包,同时编译通过了。
ios真机 运行结果为:http链接能成功,socketIO 链接不上,具体日志如下:
2017-03-29 10:24:31.415 BridgeGame-mobile[27658:1671249] Received response from request to url http://192.168.1.103:8080/socket.io/1/?EIO=2&transport=polling&b64=true
2017-03-29 10:24:31.415 BridgeGame-mobile[27658:1671249] Starting to load http://192.168.1.103:8080/headimage/id/172
[WebSocket::init] _host: 192.168.1.103, _port: 8080, _path: /socket.io/1/websocket/?EIO=2&transport=websocket&sid=-xvbDbAydX6MIzw7AAAE
[1490754271:5627] NOTICE: Initial logging level 7
[1490754271:5627] NOTICE: Libwebsockets version: 1.6.0 3ca4bac
[1490754271:5627] NOTICE: IPV6 compiled in and enabled
[1490754271:5627] NOTICE: libev support not compiled in
[1490754271:5628] NOTICE: mem: platform fd map: 20480 bytes
[1490754271:5628] NOTICE: mem: per-conn: 336 bytes + protocol rx buf
采用的本地测试服务器,客户端是否需要区分IPv4与IPv6的链接方式?请大神解惑。