Book description
Over 25 hands-on recipes to create robust and highly-efficient cross-platform distributed applications with the Boost.Asio library
About This Book- Build highly efficient distributed applications with ease
- Enhance your cross-platform network programming skills with one of the most reputable C++ libraries
- Find solutions to real-world problems related to network programming with ready-to-use recipes using this detailed and practical handbook
If you want to enhance your C++ network programming skills using the Boost.Asio library and understand the theory behind development of distributed applications, this book is just what you need. The prerequisite for this book is experience with general C++11. To get the most from the book and comprehend advanced topics, you will need some background experience in multithreading.
What You Will Learn- Boost your working knowledge of one of the most reputable C++ networking libraries - Boost.Asio
- Familiarize yourself with the basics of TCP and UDP protocols
- Create scalable and highly-efficient client and server applications
- Understand the theory behind development of distributed applications
- Increase the security of your distributed applications by adding SSL support
- Implement a HTTP client easily
- Use iostreams, scatter-gather buffers, and timers
Starting with recipes demonstrating the execution of basic Boost.Asio operations, the book goes on to provide ready-to-use implementations of client and server applications from simple synchronous ones to powerful multithreaded scalable solutions. Finally, you are presented with advanced topics such as implementing a chat application, implementing an HTTP client, and adding SSL support. All the samples presented in the book are ready to be used in real projects just out of the box.
As well as excellent practical examples, the book also includes extended supportive theoretical material on distributed application design and construction.
Style and approachThis book is a set of recipes, each containing the statement and description of a particular practical problem followed by code sample providing the solution to the problem and detailed step-by-step explanation. Recipes are grouped by topic into chapters and ordered by the level of complexity from basic to advanced.
Table of contents
-
Boost.Asio C++ Network Programming Cookbook
- Table of Contents
- Boost.Asio C++ Network Programming Cookbook
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Preface
- 1. The Basics
-
2. I/O Operations
- Introduction
- Using fixed length I/O buffers
- Using extensible stream-oriented I/O buffers
- Writing to a TCP socket synchronously
- Reading from a TCP socket synchronously
- Writing to a TCP socket asynchronously
- Reading from a TCP socket asynchronously
- Canceling asynchronous operations
- Shutting down and closing a socket
- 3. Implementing Client Applications
- 4. Implementing Server Applications
- 5. HTTP and SSL/TLS
- 6. Other Topics
- Index
Product information
- Title: Boost.Asio C++ Network Programming Cookbook
- Author(s):
- Release date: January 2016
- Publisher(s): Packt Publishing
- ISBN: 9781783986545
You might also like
book
Qt5 C++ GUI Programming Cookbook
Use Qt5 to design and build a graphical user interface that is functional, appealing, and user-friendly …
book
Boost.Asio C++ Network Programming - Second Edition
Learn effective C++ network programming with Boost.Asio and become a proficient C++ network programmer About This …
book
Qt5 C++ GUI Programming Cookbook - Second Edition
Use Qt 5 to design and build functional, appealing, and user-friendly graphical user interfaces (GUIs) for …
book
C++ Reactive Programming
Learn how to implement the reactive programming paradigm with C++ and build asynchronous and concurrent applications …