Asio C++ Library; chriskohlhoff (2003).
Visit https://think-async.com/ or see packaged doc/index.html for API documentation and a tutorial.
Run:
$ npm i asio.cxxAnd then include asio.hpp as follows:
// main.cxx
#include "node_modules/asio.cxx/boost/asio.hpp"
int main() { /* ... */ }And then compile with clang++ or g++ as usual.
$ clang++ main.cxx # or, use g++
$ g++ main.cxxYou may also use a simpler approach:
// main.cxx
#include <boost/asio.hpp>
int main() { /* ... */ }If you add the path node_modules/asio.cxx to your compiler's include paths.
$ clang++ -I./node_modules/asio.cxx main.cxx # or, use g++
$ g++ -I./node_modules/asio.cxx main.cxx