Boost C++ Libraries Home Libraries People FAQ More

Home | Reference | Tutorial | Examples | Design

Boost.Asio 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.

HTTP Client

Example programs implementing simple HTTP 1.0 clients. These examples show how to use the boost::asio::read_until and boost::asio::async_read_until functions.

HTTP Server

This example illustrates the use of Boost.Asio in a server implementation of HTTP 1.0. It demonstrates how to perform a clean shutdown by cancelling all outstanding asynchronous operations.

Iostreams

Two examples showing how to use boost::asio::ip::tcp::iostream.

Multicast

An example showing the use of multicast to transmit packets to a group of subscribers.

Serialization

This example shows how Boost.Serialization can be used with Boost.Asio to encode and decode structures for transmission over a socket.

Services

This example demonstrates how to:

SSL

Example client and server programs showing the use of the boost::asio::ssl::stream template with asynchronous operations.

Timeouts

A collection of examples showing how to cancel long running asynchronous operations after a period of time.

Copyright © 2003 - 2006 Christopher M. Kohlhoff

Home | Reference | Tutorial | Examples | Design