# cpp_websocket_client_http_https **Repository Path**: xxfaxy-open/cpp_websocket_client_http_https ## Basic Information - **Project Name**: cpp_websocket_client_http_https - **Description**: No description available - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2017-12-26 - **Last Updated**: 2022-06-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 我用的库是boost,版本是1.66.0 自己下载boost解压后把文件放到boost_1_66_0目录里面去 ### 先编译boost ``` cd boost_1_66_0 ./bootstrap.sh ./b2 --build-type=minimal --toolset=gcc variant=release link=static threading=multi runtime-link=shared --with-iostreams --with-system ``` 编译好后会生成`stage`目录,里面就是编译出来的库 ### 编译ws.cpp 把ws.cpp(根据自己的情况修改第61行)和ws.sh放到boost_1_66_0目录里面去 ``` cd boost_1_66_0 chmod a+x ./ws.sh ./ws.sh ``` 使用 `./ws 主机 端口 "this is ws test"` ### 编译wss.cpp 把example目录、wss.cpp(根据自己的情况修改第124行)、wss.sh放到boost_1_66_0目录里面去 ``` cd boost_1_66_0 chmod a+x ./wss.sh ./wss.sh ``` 使用 `./wss 主机 443 "this is wss test"`