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