Comments (3)
Every Boost library that WebSocket++ uses is exclusively as a polyfill for the associated std
library (or standalone Asio in the case of boost::asio
). If you are using a well known C++11 or later compiler the library should autodetect the presence of std::thread
, std::regex
, etc. If you are using something more exotic there are preprocessor defines you can set to force the use of the std
libraries.
It isn't super well documented, but look at common/cpp11.hpp
for some more details and discussion.
In general, _WEBSOCKETPP_CPP11_STL_
will try to enable all std
dependencies. There are other defines to swap specific dependencies between boost
and std
. I would recommend using all std
dependencies unless the needed libraries are not avaliable in your version of the standard library.
from websocketpp.
as an aside that might also be of interest for microcontrollers: It is possible to disable the use of exceptions (some embedded environments don't have), compression (which adds the zlib dependency), TLS support (which adds OpenSSL dependency), and the generation of cryptographically secure random numbers (boost/std <random>
dependency). The latter two come with significant security and/or interoperability consequences, but have occasionally been useful in resource constrained environments.
from websocketpp.
I'm using C++20 so it sounds like I could drop all the dependencies from boost (except for standalone asio). For embedded systems it could be useful to include support for the widely adopted mbedtls library. Otherwise users are forced to create OpenSSL wrappers themselves. In any case, I'm looking into it a bit more, thank you!
from websocketpp.
Related Issues (20)
- Process multiple websocket clients in one thread
- memory leak
- how to build in centos7.9? HOT 1
- handle_read_http_response error
- websocketpp how to upload a PDF file to server
- Can't compile the echo_client example
- Help getting basic TLS example to work
- Build error
- Build issues on C++20 (around constructor syntax of templated structs)
- How to add some custom key to the http headers HOT 1
- 严重性 代码 说明 项目 文件 行 禁止显示状态 错误(活动) E0283 不允许使用限定名
- How to use websocketpp to process HTTPS requests?
- May I ask how websocketpp uses domain sockets for communication? HOT 1
- asio/connection.hpp 文件的第 318 行遇到了一个类型不匹配的问题,编译出错 HOT 1
- 服务端150路并发,2m码率的音视频数据发送,造成ping消息延时发送8秒
- Cannot reinit asio after .dll shutdown
- Connect one wss succefully but another failed
- Runs fine on Linux, crash on Windows due to boost invalid memory access issue HOT 2
- How can i turn off utf8_validator for incoming ANSI text message
- request server by ip and set host in header
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from websocketpp.