Skip to content

nodef/asio.cxx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asio C++ Library; chriskohlhoff (2003).

Visit https://think-async.com/ or see packaged doc/index.html for API documentation and a tutorial.

Installation

Run:

$ npm i asio.cxx

And 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.cxx

You 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


ORG

About

Asio C++ Library; chriskohlhoff (2003).

Resources

License

Stars

Watchers

Forks

Languages