Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Tutorial

Basic Skills

The tutorial programs in this first section introduce the fundamental concepts required to use the asio toolkit. Before plunging into the complex world of network programming, these tutorial programs illustrate the basic skills using simple asynchronous timers.

The final tutorial programs in this section show how to use completion tokens, and how to rewrite the timers using C++20 coroutines.

Introduction to Sockets

The tutorial programs in this section show how to use asio to develop simple client and server programs. These tutorial programs are based around the daytime protocol, which supports both TCP and UDP.

The first three tutorial programs implement the daytime protocol using TCP.

The next three tutorial programs implement the daytime protocol using UDP.

The next tutorial program in this section demonstrates how asio allows the TCP and UDP servers to be easily combined into a single program.

The remaining tutorial programs in this section rewrite the TCP server and client using C++20 coroutines, and show how to add timeouts to operations and test for errors without exceptions.


PrevUpHomeNext