Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Boost.Capy Examples

This directory contains example programs demonstrating Boost.Capy usage.

Examples

hello-task/

Minimal Capy program: a task that prints a message.

producer-consumer/

Two tasks communicating via an async event.

buffer-composition/

Composing buffer sequences without allocation for scatter/gather I/O.

mock-stream-testing/

Unit testing protocol code with mock streams and error injection.

type-erased-echo/

Echo server demonstrating the compilation firewall pattern.

timeout-cancellation/

Using stop tokens to implement operation timeouts.

parallel-fetch/

Running multiple operations concurrently with when_all.

custom-dynamic-buffer/

Implementing the DynamicBuffer concept for a custom allocation strategy.

echo-server-corosio/

A complete echo server using Corosio for real network I/O. Requires Corosio.

stream-pipeline/

Data transformation through a pipeline of sources and sinks.

Building

CMake

cmake -B build -DBOOST_CAPY_BUILD_EXAMPLES=ON
cmake --build build

B2 (BJam)

b2 example