vimpunk / beast-asio-standalone

HTTP and WebSocket built on Asio in C++11
http://www.boost.org/libs/beast
Boost Software License 1.0
11 stars 2 forks source link

net namespace #1

Open vinniefalco opened 5 years ago

vinniefalco commented 5 years ago

Beast uses the net namespace to access Asio symbols, so you should in theory be able to just modify the config file:

https://github.com/boostorg/beast/blob/41040a21f0b0e12537beb1262c2d538a023efe65/include/boost/beast/core/detail/config.hpp#L24

If there are places in the code which don't compile with standalone, I am more than happy to take patches or apply fixes.

halvors commented 2 years ago

@vinniefalco Can you clearify on this, is there any way i can make beast to work with standalone Asio using this method?

vinniefalco commented 2 years ago

I have no idea. You need to change the includes from <boost/asio/*> to <asio/*> or whatever the standalone asio uses. And then fix the resulting compilation errors.