Hands-On Network Programming with C
暫譯: C語言網路程式設計實務指南

Winkle, Lewis Van

  • 出版商: Packt Publishing
  • 出版日期: 2019-05-13
  • 售價: $1,800
  • 貴賓價: 9.5$1,710
  • 語言: 英文
  • 頁數: 478
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1789349869
  • ISBN-13: 9781789349863
  • 相關分類: C 程式語言Web-crawler 網路爬蟲
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

Key Features

  • Leverage your C or C++ programming skills to build powerful network applications
  • Get to grips with a variety of network protocols that allow you to load web pages, send emails, and do much more
  • Write portable network code for operating systems such as Windows, Linux, and macOS

Book Description

Network programming, a challenging topic in C, is made easy to understand with a careful exposition of socket programming APIs. This book gets you started with modern network programming in C and the right use of relevant operating system APIs.

This book covers core concepts, such as hostname resolution with DNS, that are crucial to the functioning of the modern web. You'll delve into the fundamental network protocols, TCP and UDP. Essential techniques for networking paradigms such as client-server and peer-to-peer models are explained with the help of practical examples. You'll also study HTTP and HTTPS (the protocols responsible for web pages) from both the client and server perspective. To keep up with current trends, you'll apply the concepts covered in this book to gain insights into web programming for IoT. You'll even get to grips with network monitoring and implementing security best practices.

By the end of this book, you'll have experience of working with client-server applications, and be able to implement new network programs in C.

The code in this book is compatible with the older C99 version as well as the latest C18 and C++17 standards. Special consideration is given to writing robust, reliable, and secure code that is portable across operating systems, including Winsock sockets for Windows and POSIX sockets for Linux and macOS.

商品描述(中文翻譯)

#### 主要特點

- 利用您的 C 或 C++ 程式設計技能來構建強大的網路應用程式
- 熟悉各種網路協定,讓您能夠加載網頁、發送電子郵件,還有更多功能
- 為 Windows、Linux 和 macOS 等作業系統撰寫可攜式網路程式碼

#### 書籍描述

網路程式設計是 C 語言中的一個挑戰性主題,透過對 socket 程式設計 API 的仔細闡述,使其易於理解。本書將引導您開始使用 C 語言進行現代網路程式設計,並正確使用相關的作業系統 API。

本書涵蓋了現代網路運作中至關重要的核心概念,例如使用 DNS 進行主機名稱解析。您將深入了解基本的網路協定 TCP 和 UDP。針對客戶端-伺服器和對等網路模型等網路範式的基本技術,將透過實際範例進行說明。您還將從客戶端和伺服器的角度學習 HTTP 和 HTTPS(負責網頁的協定)。為了跟上當前趨勢,您將應用本書中涵蓋的概念,深入了解物聯網的網路程式設計。您甚至會學習網路監控和實施安全最佳實踐。

在本書結束時,您將擁有與客戶端-伺服器應用程式合作的經驗,並能夠在 C 語言中實現新的網路程式。

本書中的程式碼與舊版 C99 以及最新的 C18 和 C++17 標準相容。特別考慮到撰寫穩健、可靠和安全的程式碼,並確保其在各作業系統之間的可攜性,包括 Windows 的 Winsock sockets 和 Linux 及 macOS 的 POSIX sockets。

作者簡介

Lewis Van Winkle is a software programming consultant, entrepreneur, and founder of a successful IoT company. He has over 20 years of programming experience after publishing his first successful software product at age 12. He has over 15 years of programming experience with the C programming language on a variety of operating systems and platforms. He is active in the open-source community and has published several popular open-source programs and libraries-many of them in C. Today, Lewis spends much of his time consulting, where he loves taking on difficult projects that other programmers have given up on. He specializes in network systems, financial systems, machine learning, and interoperation between different programming languages.

作者簡介(中文翻譯)

路易斯·范溫克是一位軟體程式設計顧問、企業家,以及一家成功的物聯網(IoT)公司的創辦人。他在12歲時發表了第一個成功的軟體產品,擁有超過20年的程式設計經驗。他在各種作業系統和平台上,擁有超過15年的C程式語言的程式設計經驗。他活躍於開源社群,並發表了幾個受歡迎的開源程式和函式庫,其中許多是用C語言編寫的。如今,路易斯將大部分時間用於顧問工作,他喜歡接手那些其他程式設計師已經放棄的困難專案。他專精於網路系統、金融系統、機器學習,以及不同程式語言之間的互操作性。

目錄大綱

  1. Introducing Networks and Protocols
  2. Getting to Grips with Socket APIs
  3. An In-Depth Overview of TCP connections
  4. Establishing UDP Connections
  5. Hostname Resolution and DNS
  6. Building a Simple Web Client
  7. Building a Simple Web Server
  8. Making Your Program Send Emails
  9. Loading Secure Web Pages with HTTPS and OpenSSL
  10. Implementing a Secure Web Server
  11. Establishing SSH Connections
  12. Network Monitoring and Security
  13. Socket Programming Tips and Pitfalls
  14. Web Programming for the Internet of Things
  15. Answers to Questions
  16. Setting Up Your C Compiler on Windows
  17. Setting Up Your C Compiler on Linux
  18. Setting Up Your C Compiler on macOS
  19. Example Programs

目錄大綱(中文翻譯)


  1. Introducing Networks and Protocols

  2. Getting to Grips with Socket APIs

  3. An In-Depth Overview of TCP connections

  4. Establishing UDP Connections

  5. Hostname Resolution and DNS

  6. Building a Simple Web Client

  7. Building a Simple Web Server

  8. Making Your Program Send Emails

  9. Loading Secure Web Pages with HTTPS and OpenSSL

  10. Implementing a Secure Web Server

  11. Establishing SSH Connections

  12. Network Monitoring and Security

  13. Socket Programming Tips and Pitfalls

  14. Web Programming for the Internet of Things

  15. Answers to Questions

  16. Setting Up Your C Compiler on Windows

  17. Setting Up Your C Compiler on Linux

  18. Setting Up Your C Compiler on macOS

  19. Example Programs