我想測試在cocos2d-x 3.15上使用websocket server
由於3.15上的libwebsockets已經更新到2.10版
舊的server範例無法使用(libwebsocket_* -> lws_*)
我改用以下例子:
https://gist.github.com/zYeoman/8dffbb612d10c3a11912cb26027f4236
但結果用以下網站測試:
https://www.websocket.org/echo.html
還是無法執行
看似是沒有listen port
請問這是什麼樣的問題?
我的log如下:
[2017/08/07 16:42:40:7829] NOTICE: Initial logging level 7
[2017/08/07 16:42:40:7829] NOTICE: Libwebsockets version: 2.1.0 james@James-Chen.local-v3.4-139-gbdcf7f8
[2017/08/07 16:42:40:7829] NOTICE: IPV6 compiled in and enabled
[2017/08/07 16:42:40:7830] NOTICE: libev support not compiled in
[2017/08/07 16:42:40:7830] NOTICE: libuv support not compiled in
[2017/08/07 16:42:40:7830] NOTICE: Threads: 1 each 7168 fds
[2017/08/07 16:42:40:7831] NOTICE: mem: platform fd map: 57344 bytes
[2017/08/07 16:42:40:7832] NOTICE: Compiled with OpenSSL support
[2017/08/07 16:42:40:7832] NOTICE: SSL disabled: no LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT
[2017/08/07 16:42:40:7832] NOTICE: Creating Vhost ‘default’ port 9001, 2 protocols, IPv6 on
[2017/08/07 16:42:40:7832] NOTICE: mem: per-conn: 512 bytes + protocol rx buf
starting server…
[2017/08/07 16:42:40:8343] NOTICE: lws_protocol_init