Book Image

Boost.Asio C++ Network Programming

By : Wisnu Anggoro
Book Image

Boost.Asio C++ Network Programming

By: Wisnu Anggoro

Overview of this book

Table of Contents (15 chapters)
Boost.Asio C++ Network Programming Second Edition
About the Authors
About the Reviewers

Chapter 6. Creating a Client-server Application

In the previous chapter, we delved into the Boost.Asio libraries, which are important in order to develop a network application. And now, we will move to a deeper discussion about a client-server application that can communicate with each other over a computer network between two or more computers. One of them is called client and the other one is the server.

We are going to discuss the development of the server, which is able to send and receive data traffic from the client and also create a client-side program to receive data traffic. In this chapter, we will discuss the following topics:

  • Establishing a connection between the client and server

  • Sending and receiving data between the client and server

  • Wrapping the most frequently used code to simplify the programming process by avoiding code reuse