I hope you will correct me in the first translation.
Boost.asio C + + network programming with specific C + + network programming examples to improve your skills John Torjan
Use specific C + + network programming examples to improve your skills
Copyright? Packt Publishing
All rights reserved, except for a simple reference in an appraisal article or comment, without the prior written authorization of the publisher, any part of the book cannot be reproduced, stored in a retrieval system, or circulated in any form or manner. Before the book is ready for release, we have done our best to ensure the accuracy of the information in the book. However, the information contained in this book, either express or implied, is not guaranteed. Neither the author of this book, Packt Publishing, nor its dealers and distributors shall be liable for any damage directly or indirectly caused by this book.
Packt Publishing will do its utmost to mark all companies and products mentioned in the book with appropriate capital letters. However, Packt publishing cannot guarantee the accuracy of this information.
First release: January 2013 Product Code: 1120213 published by Packt Publishing Ltd.
Staff John Torjo Coordinator: Sherin Padayatty review: Béla Tibor Bartha, Nicolae Ghimbovschi proofreading: Claire Cresswell-lane soliciting contributions edit: Erol StaveleyIndex Compilation: Monica Ajmera MehtaEditor: Ameya Sawantimage processing: Valentina D ' Silva, Aditi GajjarTechnical Editor: Kaustubh S. MayekarCo-publishing: Conidon Miranda cover: Conidon Miranda
With regard to the author as an authoritative C + + expert, John Torjo spent most of his time in C + + for more than 15 years of his programming career. Occasionally, he writes programs in C # and Java. He also likes to write some articles about programming in the C + + Users Journal and other magazines. In his spare time, he likes to play poker and drive fast. He has a lot of freelancing, one of which combines his poker and programming interests. You can contact him by [email protected]. ----------------------------------------------------------------------------------------------------------I want to thank my friend Alexand. Ru Chis, Aurelian Hale, Bela Tibor Bartha, Cristian Fatu, Horia Uifaleanu, Nicolae Ghimbovschi and Ovidiu deac feedback and comments on this book. I would also like to thank Packt for their understanding, even though I have occasionally missed deadlines. And then the most thankful is the author of Chris Kohlhoff,boost.asio, who wrote such a great library. Dedicate this book to my best friend, Darius. ----------------------------------------------------------------------------------------------------------
About reviewers Béla Tibor Bartha
A professional software engineer who works in a variety of technologies and languages. Although he has been developing iOS and OSX applications for the past 4 years, C + + has accompanied him through the years of his early personal game development project. ----------------------------------------------------------------------------------------------------------I want to thank John. , because of him, I can do the review of this book.
----------------------------------------------------------------------------------------------------------Nicolae Ghimbovschi a talented individual developer who participates in a variety of C + + projects for more than 5 years. He is mainly involved in the project of communication engineering of some enterprises. He is an avid Linux enthusiast who likes to test and experiment with different operating systems, scripting tools, programming languages. In addition to programming, he also enjoys cycling, yoga and meditation.
----------------------------------------------------------------------------------------------------------I want to thank John for letting me judge this book.
----------------------------------------------------------------------------------------------------------
Catalogue Preface Chapter I: Introduction to Boost.asio
What is Boost.asio?
History
Depend on
Compiling Boost.asio
Important Macros
Synchronous vs Asynchronous
Exception vs Error Code
Multithreading in the Boost.asio
Not just the Internet
Timers
Io_service class
Chapter II: Boost.asio Fundamentals Network API
Boost.asio namespaces
IP Address
Endpoint
Sockets
Synchronization error Codes
Socket member functions
Other precautions
Read/write/connect free function
Connect function
Read/write function
Asynchronous programming
Why async?
Asynchronous run (), Run_one (), poll (), Poll_one ()
Keep Running
Run_one (), poll (), Poll_one () function Async-work asynchronous post () vs dispatch () vs wrap ()Keep RunningSummaryChapter Three: Echo Server/ClientTCP Echo Server/clientTCP Synchronization ClientTCP Synchronization Service sideTCP Asynchronous ClientTCP Synchronization Service sideCodeUDP echo Server/clientUDP synchronous Echo Client
UDP synchronous Echo service side
Summary
Fourth: Client and Server synchronization client/server side
Synchronizing clients
Synchronizing the service side
Asynchronous client/server
Asynchronous client
Asynchronous service-side
Summarize
The fifth chapter: Synchronous vs Asynchronous synchronous asynchronous hybrid programming
Cross-messaging between client and server
Synchronous I/O in the client software
Threads in the synchronous I/O Synchronization service side of the server-side software
asynchronous I/O in the client software
asynchronous I/O in the server-side software
Threads in the asynchronous service side
Asynchronous operation
Agent implementation
Summarize
Sixth: boost.asio-Other features STD streams and STD buffer I/O
Boost.asio and STL Streams
Streambuf class handles the free function of Streambuf objects
Co-process
Summarize
Seventh chapter: boost.asio-Advanced Asio VS Boost.asio
Debugging
Handler Trace Information
Example
Handler trace File
Ssl
Windows features for Boost.asio
Stream processing
Random storage processing
Object handling
POSIX features for Boost.asio
Local sockects
Connect local sockets
POSIX file descriptor
Fork
Summarize
Index
Boost.asio C + + Network programming Translator (1)