Chapter 3. Implementing Client Applications
In this chapter, we will cover the following topics:
- Implementing a synchronous TCP client
- Implementing a synchronous UDP client
- Implementing an asynchronous TCP client
Introduction
A client is a part of a distributed application that communicates with another part of this application called a server, in order to consume services it provides. The server, on the other hand, is a part of distributed application that passively waits for requests arriving from clients. When a request arrives, the server performs the requested operation and sends a response—the result of the operation—back to the client.
The key characteristic of a client is that it needs a service provided by the server and it initiates the communication ...
Get Boost.Asio C++ Network Programming Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.