• Complain

John Torjo - Boost.Asio C++ Network Programming

Here you can read online John Torjo - Boost.Asio C++ Network Programming full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2013, publisher: Packt Publishing, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

John Torjo Boost.Asio C++ Network Programming
  • Book:
    Boost.Asio C++ Network Programming
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2013
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Boost.Asio C++ Network Programming: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Boost.Asio C++ Network Programming" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Enhance your skills with practical examples for C++ network programming

Overview

  • Augment your C++ network programming using Boost.Asio
  • Discover how Boost.Asio handles synchronous and asynchronous programming models.
  • Practical examples of client/server applications.
  • Learn how to deal with threading when writing network applications.
  • Harness the power of Boost with plenty of examples that you can build upon.

In Detail

Network programming is not new and its no secret that its 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 youll 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 youre using the right tools.

What you will learn from this book

  • 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.

Approach

What you want is an easy level of abstraction, which is just what this book provides in conjunction with Boost.Asio. Switching to Boost.Asio is just a few extra #include directives away, with the help of this practical and engaging guide.

Who this book is written for

This book is great for developers that need to do network programming, who dont want to delve into the complicated issues of a raw networking API. You should be familiar with core Boost concepts, such as smart pointers and shared_from_this, resource classes (noncopyable), functors and boost::bind, boost mutexes, and the boost date/time library. Readers should also be familiar with blocking versus non-blocking operations.

John Torjo: author's other books


Who wrote Boost.Asio C++ Network Programming? Find out the surname, the name of the author of the book and a list of all author's works by series.

Boost.Asio C++ Network Programming — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Boost.Asio C++ Network Programming" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Boost.Asio C++ Network Programming

Boost.Asio C++ Network Programming

Copyright 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: February 2013

Production Reference: 1120213

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78216-326-8

www.packtpub.com

Cover Image by J.Blaminsky (<>)

Credits

Author

John Torjo

Reviewers

Bla Tibor Bartha

Nicolae Ghimbovschi

Acquisition Editor

Erol Staveley

Commissioning Editor

Ameya Sawant

Technical Editor

Kaustubh S. Mayekar

Project Coordinator

Sherin Padayatty

Proofreader

Claire Cresswell-Lane

Indexer

Monica Ajmera Mehta

Graphics

Valentina D'silva

Aditi Gajjar

Production Coordinator

Conidon Miranda

Cover Work

Conidon Miranda

About the Author

John Torjo is a renown C++ expert. He has been programming for over 15 years, most of which were spent doing C++. Sometimes, he also codes C# or Java.

Hes also enjoyed writing articles about programming in C++ Users Journal (currently, Dr. Dobbs) and other magazines.

In his spare time, he likes playing poker and driving fast cars. One of his freelance projects lets him combine two of his passions, programming and poker. You can reach him at <>.

Id like to thank my friends Alexandru Chis, Aurelian Hale, Bela Tibor Bartha, Cristian Fatu, Horia Uifaleanu, Nicolae Ghimbovschi, and Ovidiu Deac for their feedback and suggestions relating to the book. Id also like to thank the guys at Packt for being understanding, even though I missed a few deadlines now and then. And many thanks to Chris Kohlhoff, the author of Boost.Asio, for writing such a damn good library!

I dedicate the book to my best friend, Darius

About the Reviewers

Bla Tibor Bartha is a professional software engineer working on various technologies and languages. Although, in the last four years, hes working on iOS and OSX applications, as C++ is his old passion along with game development as personal projects.

I would like to thank John for the possibility to review this book.

Nicolae Ghimbovschi is a talented individual, who has been working on various C/C++ projects for over 5 years. He has been involved mostly in telecommunication projects for enterprises. He is a dedicated Linux hobbyist, who enjoys testing and experimenting different operating systems, scripting tools, and programming languages. Besides programming, he enjoys cycling, yoga, and meditation.

I would like to thank John for letting me to review his book.

www.PacktPub.com
Support files, eBooks, discount offers and more

You might want to visit www.PacktPub.com for support files and downloads related to your book.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at > for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

httpPacktLibPacktPubcom Do you need instant solutions to your IT - photo 1

http://PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packts online digital book library. Here, you can access, read and search across Packts entire library of books.

Why Subscribe?
  • Fully searchable across every book published by Packt
  • Copy and paste, print and bookmark content
  • On demand and accessible via web browser
Free Access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.

Preface

Network programming has been around for a very long time, and it's definitely not a task for the faint-hearted. Boost.Asio provides an excellent abstraction over it, making sure that with a minimal amount of coding, you can create beautiful client-server applications and have tons of fun doing it. And it throws some extra non-networking features, just as a bonus! Code that uses Boost.Asio is compact, easy to read, and if you follow what I describe in the book, it is bug-free.

What this book covers

, Getting Started with Boost.Asio will present what Boost.Asio is, how to build it, and a few examples along the way. Boost.Asio is more than a networking library as you're about to find out. You'll also discover the most important class that sits at the heart of Boost.Asio, io_service.

, Boost.Asio Fundamentals will cover what you definitely need to know in order to know when using Boost.Asio. We'll delve deeper into asynchronous programming, which is trickier than synchronous and is much more fun. This chapter was implemented as a reference, which you should come back to, while implementing your own networking applications.

, Echo Server/Clients will implement you to implement a small client-server application; probably, the easiest client-server application you will ever write. This is the Echo application, which is a server that echoes back anything a client writes and then closes the client's connection. We will implement first a synchronous application, and then an asynchronous application, so you can easily compare them.

, Client and Server will discuss delving into building non-trivial client and server applications using Boost.Asio. We will discuss how to avoid pitfalls, such as memory leaks and deadlocks. All the programs are meant to be skeletons you can extend and adapt to your needs.

, Synchronous Versus Asynchronous will walk you through the things to consider when choosing to go synchronous or asynchronous. First off, avoid mixing them. In this chapter, we'll see how easy it can be to implement, test, and debug each type of application.

, Boost.Asio Other Features will walk you through some of the not-so-well-known features of Boost.Asio. std streams and streambufs can be a bit more complicated to use, but as you'll see, they bring their own benefits to the table. Finally, you'll see a rather late entry to Boost.Asio, that is, co-routines, which allow you to have code that is asynchronous, but is much easier to read (as if it was synchronous).

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Boost.Asio C++ Network Programming»

Look at similar books to Boost.Asio C++ Network Programming. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Boost.Asio C++ Network Programming»

Discussion, reviews of the book Boost.Asio C++ Network Programming and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.