Boost.Asio Recipes

December 20, 2025 · View on GitHub

This repository contains a collection of recipes designed to help you become familiar with the Boost.Asio library. Each recipe gradually increases in complexity and introduces new features of the library step by step.

These examples are based on the following Packt publication:

Boost.Asio C++ Network Programming Cookbook Over 25 hands-on recipes for creating robust, high-performance, cross-platform distributed applications with the Boost.Asio library.

Building the Executables

This project uses the SeeMake template. To build it on Windows or Linux, you’ll need to install the required dependencies first.

  • Linux setup: Follow the instructions here.
  • Windows setup: Follow the instructions here.

Once the dependencies are installed, you can build all executables using the following commands:

# On Linux
cmake --workflow --preset linux-default-release

# On Windows
cmake --workflow --preset windows-clang-release
# or
cmake --workflow --preset windows-default-release