Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

C++11 Examples

Allocation

This example shows how to customise the allocation of memory associated with asynchronous operations.

Buffers

This example demonstrates how to create reference counted buffers that can be used with socket read and write operations.

Chat

This example implements a chat server and client. The programs use a custom protocol with a fixed length message header and variable length message body.

Echo

A collection of simple clients and servers, showing the use of both synchronous and asynchronous operations.

Futures

This example demonstrates how to use std::future in conjunction with Boost.Asio's asynchronous operations.

HTTP Server

This example illustrates the use of asio in a simple single-threaded server implementation of HTTP 1.0. It demonstrates how to perform a clean shutdown by cancelling all outstanding asynchronous operations.

Spawn

Example of using the boost::asio::spawn() function, a wrapper around the Boost.Coroutine library, to implement a chain of asynchronous operations using stackful coroutines.


PrevUpHomeNext