Boost.Asio C++ Network Programming(2nd).pdf

所需积分/C币:15 2018-01-30 11:41:10 3.06MB PDF

Boost.Asio C++ Network Programming(2nd).pdf Boost.Asio C++ Network Programming(2nd).pdf Boost.Asio C++ Network Programming(2nd).pdf
Table of contents Boost. Asio C++ Network Programming Second Edition Credits about the authors Acknowledgements about the reviewers www.Packtpub.com Support files, eBooks, discount offers, and more Why Subscribe Free access for Packt account holders Preface What this book coⅴers What you need for this book Who this book is for Conⅴ entions Reader feedback Customer support Downloading the example code Errata Pi y irac Questions 1. Simplifying Your Network Programming in C++ Setting up the ming w compiler and Text Editor Installing MinGW-w64 Setting up the Path environment Choosing and installing the Text Editor USing the GCC C++ compiler Compiling a ctt program Compiling multiple source files Compiling and linking a program separately Detecting a warning in the C++ program Knowing other important options in the GCC C++ compiler Troubleshooting in the GCC C++ compiler Help for command-line options Version numbers The verbose compilation Summar 2. Understanding the Networking Concepts An introduction to networking systems The osi reference model The Physical layer The data Link layer The netw ork layer The Transport layer The session layer The Presentation layer The Application layer The TCP/IP reference mode Understanding TCP and UDP Transmission Control protocol User Datagram Protocol Understanding ports Exploring the Internet protoco Internet protocol version 4-IPv4 Internet Protocol Version 6-lPv6 Using tcp/ip tools for troubleshooting The ipconfig command Displaying the full configuration information Displaying dNs Flushing dns Renewing the IP address Releasing the ip address The ping command The tracert command The pathping command The netstat command The telnet command Summary 3. Introducing the boost ctt libraries Introducing the C++ standard template library Introducing the Boost C++ libraries Advantages of Boost libraries Preparing Boost libraries for the mingw compiler Downloading Boost libraries Deploying boost libraries Using boost libraries Building Boost libraries ummar 4. Getting Started with Boost. Asio Getting closer to the Boost. asio library Examining the IO service in the Boost. Asio library Using and blocking the run@ function Using the non-blocking pollo function Removing the work object Dealing with many threads Understanding the Boost Bind library Wrapping a function invocation Working with the boost Bind library ynchronizing data access with the Boost Mutex library Giving some work to the lO service Using the posto function Using the dispatch function Summary 5. Delving into the Boost. Asio Library Serializing the yo service work Using the strand function Wrapping a handler through the strand obiect Handling exceptions and errors Handling an exception Handling an error Timing the work execution using the timer class △ n expiring timer Using the timer along with the boost bind function Using the timer along with the boost: strand function Summary 6. Creating a Client-server Application Establishing a connection synchronous client An asynchronous client An asynchronous server Reading and writing to the socket The Send( and onsendo functions The Reco and OnRecvo functions Wrapping the network code Developing a client and server program creating a simple echo server Creating a simple client program Summary 7. Debugging the Code and Solving the error Choosing a debugging tool Installing a debugging tool Preparing a file for debugging Running the program under GDB Starting the debugging process The continuing and stepping debugging process Printing the source code Setting and deleting the breakpoint Printing a variable value Modifying a variable value Calling the command prompt olVing the e error What's next Summary Index Boost. Asio C++ Network Programming second Edition Boost. Asio C++ Network Programming second Edition Copyright C 2015 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 indirect ly 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 Second published: September 20 15 Production reference: 1100915 Published by Packt Publishing Ltd Livery place 35 Livery street Birmingham b3 2PB. UK ISBN978-1-78528-307-9 www.packtpub.com Credits Authors Wisnu anggoro John toro Reviewers Toma beca yed bennour ⅵ ic Taylor Commissioning editor Ⅴ eena pagare Acquisition Editor Tushar Gupta Content Development Editor Rashmi suvarna Technical editor Abhishek Kotian Copy editor Neha vyas Project Coordinator Judie jose Proofreader Safis Editing Indexer Mariamman chettiyar Production coordinator Conidon miranda Cover work Conidon miranda

...展开详情
试读 127P Boost.Asio C++ Network Programming(2nd).pdf

评论 下载该资源后可以进行评论 2

Julienliu1973 格式差了点,但还是要
2019-02-02
回复
gao8776291 格式不太好
2018-04-13
回复
img
shuangyan5230

关注 私信 TA的资源

上传资源赚积分,得勋章
    最新推荐
    Boost.Asio C++ Network Programming(2nd).pdf 15积分/C币 立即下载
    1/127
    Boost.Asio C++ Network Programming(2nd).pdf第1页
    Boost.Asio C++ Network Programming(2nd).pdf第2页
    Boost.Asio C++ Network Programming(2nd).pdf第3页
    Boost.Asio C++ Network Programming(2nd).pdf第4页
    Boost.Asio C++ Network Programming(2nd).pdf第5页
    Boost.Asio C++ Network Programming(2nd).pdf第6页
    Boost.Asio C++ Network Programming(2nd).pdf第7页
    Boost.Asio C++ Network Programming(2nd).pdf第8页
    Boost.Asio C++ Network Programming(2nd).pdf第9页
    Boost.Asio C++ Network Programming(2nd).pdf第10页
    Boost.Asio C++ Network Programming(2nd).pdf第11页
    Boost.Asio C++ Network Programming(2nd).pdf第12页
    Boost.Asio C++ Network Programming(2nd).pdf第13页
    Boost.Asio C++ Network Programming(2nd).pdf第14页
    Boost.Asio C++ Network Programming(2nd).pdf第15页
    Boost.Asio C++ Network Programming(2nd).pdf第16页
    Boost.Asio C++ Network Programming(2nd).pdf第17页
    Boost.Asio C++ Network Programming(2nd).pdf第18页
    Boost.Asio C++ Network Programming(2nd).pdf第19页
    Boost.Asio C++ Network Programming(2nd).pdf第20页

    试读已结束,剩余107页未读...

    15积分/C币 立即下载 >