1. Home
  2. Browse
  3. asiochan

asiochan

v2022-11-25#1Latest

C++20 coroutine channels for ASIO

Install

Run the following Vcpkg command to install the port.

vcpkg install asiochan

Usage

asiochan is header-only and can be used from CMake via:

find_path(ASIOCHAN_INCLUDE_DIRS "asiochan/asiochan.hpp")
target_include_directories(main PRIVATE ${ASIOCHAN_INCLUDE_DIRS})

By default asiochan depend on boost/asio. If you need use standalone asio instead, please define micro ASIOCHAN_USE_STANDALONE_ASIO.

For example:

find_path(ASIOCHAN_INCLUDE_DIRS "asiochan/asiochan.hpp")
target_compile_definitions(main PRIVATE ASIOCHAN_USE_STANDALONE_ASIO)
target_include_directories(main PRIVATE ${ASIOCHAN_INCLUDE_DIRS})
See source

Version

v2022-11-25#1

Publication

Supports

All

GitHub

MiSo1289/asiochan

Homepage

github.com/MiSo1289/asiochan

Subtree

081abea1ab

License

MIT

Definition

Manifest