Boost.Asio C++ Network Programming

Enhance your skills with practical examples for C++ network programming
Preview in Mapt

Boost.Asio C++ Network Programming

John Torjo

1 customer reviews
Enhance your skills with practical examples for C++ network programming
Mapt Subscription
FREE
$29.99/m after trial
eBook
$15.40
RRP $21.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$15.40
$34.99
$29.99 p/m after trial
RRP $21.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Boost.Asio C++ Network Programming Book Cover
Boost.Asio C++ Network Programming
$ 21.99
$ 15.40
Boost.Asio C++ Network Programming Cookbook Book Cover
Boost.Asio C++ Network Programming Cookbook
$ 39.99
$ 28.00
Buy 2 for $32.90
Save $29.08
Add to Cart

Book Details

ISBN 139781782163268
Paperback156 pages

Book Description

Network programming is not new and it’s no secret that it’s not an easy task. Boost.Asio provides an excellent level of abstraction, making sure that with a minimal amount of coding you can create beautiful client/server applications, and have fun in the process!

'Boost.Asio C++ Network Programming" shows how to build client/server applications using a library that is part of the popular peer-reviewed Boost C++ Libraries. It analyzes whether you should go synchronous or asynchronous and the role that threading plays, whilst providing examples you can run and extend for yourself.

After covering the fundamentals of Boost.Asio you’ll discover how you can build synchronous and asynchronous clients and servers. You will also see how you can have your own asynchronous functions play nice with Boost.Asio. As a bonus, we will introduce co-routines, which make asynchronous programming a piece of cake. Nowadays, network programming is a must, no matter what type of programmer you are. "Boost.Asio C++ Network Programming" shows just how simple networking can be, if you’re using the right tools.

Table of Contents

Chapter 1: Getting Started with Boost.Asio
What is Boost.Asio?
Synchronous versus asynchronous
Exceptions versus error codes
Threading in Boost.Asio
Not just networking
Timers
The io_service class
Summary
Chapter 2: Boost.Asio Fundamentals
The Network API
Asynchronous programming
Staying alive
Summary
Chapter 3: Echo Server/Clients
TCP Echo server/clients
UDP Echo server/clients
Summary
Chapter 4: Client and Server
The synchronous client/server
The asynchronous client/server
Summary
Chapter 5: Synchronous Versus Asynchronous
Mixing synchronous and asynchronous programming
Passing client to server messages and vice versa
Synchronous I/O in client applications
Synchronous I/O in server applications
Asynchronous I/O in client applications
Asynchronous I/O in server applications
Asynchronous operations
Implementing proxies
Summary
Chapter 6: Boost.Asio – Other Features
std streams and std buffer I/O
Co-routines
Summary
Chapter 7: Boost.Asio – Advanced Topics
Asio versus Boost.Asio
Debugging
SSL
Boost.Asio Windows features
Boost.Asio POSIX features
Summary

What You Will Learn

  • How to easily reference Boost.Asio programming
  • Synchronous versus asynchronous using Boost.Asio
  • How threading affects programming using Boost.Asio
  • Create your own echo client and server
  • More examples of client/server applications, both synchronous and asynchronous
  • Implement your own asynchronous operations
  • Co-routines: asynchronous operations with a synchronous feel
  • Use Boost.Asio for SSL Networking
  • Debug Boost.Asio
  • Use Boost.Asio for more than just networking

 

Authors

Table of Contents

Chapter 1: Getting Started with Boost.Asio
What is Boost.Asio?
Synchronous versus asynchronous
Exceptions versus error codes
Threading in Boost.Asio
Not just networking
Timers
The io_service class
Summary
Chapter 2: Boost.Asio Fundamentals
The Network API
Asynchronous programming
Staying alive
Summary
Chapter 3: Echo Server/Clients
TCP Echo server/clients
UDP Echo server/clients
Summary
Chapter 4: Client and Server
The synchronous client/server
The asynchronous client/server
Summary
Chapter 5: Synchronous Versus Asynchronous
Mixing synchronous and asynchronous programming
Passing client to server messages and vice versa
Synchronous I/O in client applications
Synchronous I/O in server applications
Asynchronous I/O in client applications
Asynchronous I/O in server applications
Asynchronous operations
Implementing proxies
Summary
Chapter 6: Boost.Asio – Other Features
std streams and std buffer I/O
Co-routines
Summary
Chapter 7: Boost.Asio – Advanced Topics
Asio versus Boost.Asio
Debugging
SSL
Boost.Asio Windows features
Boost.Asio POSIX features
Summary

Book Details

ISBN 139781782163268
Paperback156 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Boost.Asio C++ Network Programming Cookbook Book Cover
Boost.Asio C++ Network Programming Cookbook
$ 39.99
$ 28.00
Learning Boost C++ Libraries Book Cover
Learning Boost C++ Libraries
$ 39.99
$ 28.00
Boost.Asio C++ Network Programming - Second Edition Book Cover
Boost.Asio C++ Network Programming - Second Edition
$ 23.99
$ 16.80
Boost C++ Application Development Cookbook Book Cover
Boost C++ Application Development Cookbook
$ 29.99
$ 21.00
C++ Multithreading Cookbook Book Cover
C++ Multithreading Cookbook
$ 29.99
$ 21.00
C# 6 and .NET Core 1.0: Modern Cross-Platform Development Book Cover
C# 6 and .NET Core 1.0: Modern Cross-Platform Development
$ 39.99
$ 28.00