Coder Social home page Coder Social logo

Comments (3)

zaphoyd avatar zaphoyd commented on July 2, 2024 1

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.

zaphoyd avatar zaphoyd commented on July 2, 2024

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.

MartyMcFlyInTheSky avatar MartyMcFlyInTheSky commented on July 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.