C語言網絡編程實踐檢視原始碼討論檢視歷史
《C語言網絡編程實踐》,Lewis,Van,Winkle 著,出版社: 東南大學出版社。
書籍是用文字、圖畫和其他符號,在一定材料上記錄各種知識,清楚地表達思想,並且制裝成卷冊的著作物[1],為傳播各種知識和思想,積累人類文化的重要工具。它隨着歷史的發展,在書寫方式、所使用的材料和裝幀形式[2],以及形態方面,也在不斷變化與變更。
內容簡介
《C語言網絡編程實踐(影印版)》採用C語言,涵蓋網絡編程所有經典話題,包括網絡協議、網絡數據及錯誤、電子郵件、服務器架構,以及HTTP及Web應用程序,對新的SSL支持、異步I/O循環的編寫方法、跨站腳本以及跨站請求偽造攻擊網站的原理及保護方法等內容也有詳盡介紹。
目錄
Preface
Section 1:Getting Started with Network Programming
Chapter 1:Introducing Networks and Protocols
Technical requirements
The internet and C
OSI layer model
TCP/IP layer model
Data encapsulation
Internet Protocol
What is an address?
Domain names
Internet routing
Local networks and address translation
Subnetting and CIDR
Multicast,broadcast,and anycast
Port numbers
Clients and servers
Putting it together
What's your address?
Listing network adapters from C
Listing network adapters on Windows
Listing network adapters on Linux and macOS
Summary
Questions
Chapter 2:Getting to Grips with Socket APIs
Technical requirements
What are sockets?
Socket setup
Two types of sockets
Socket functions
Anatomy of a socket program
TCP program flow
UDP program flow
Berkeley sockets versus Winsock sockets
Header files
Socket data type
Invalid sockets
Closing sockets
Error handling
Our first program
A motivating example
Making it networked
Working with IPv6
Supporting both IPv4 and IPv6
Networking with inetd
Summary
Questions
Chapter 3:An In-Depth Overview of TCP Connections
Technical requirements
Multiplexing TCP connections
Polling non-blocking sockets
Forking and multithreading
The select()function
Synchronous multiplexing with select()
select()timeout
lterating through an fd_set
select()on non-sockets
A TCP client
TCP client code
A TCP server
TCP server code
Building a chat room
Blocking on send()
TCP is a stream protocol
Summary
Questions
Chapter 4:Establishing UDP Connections
Technical requirements
How UDP sockets differ
UDP client methods
UDP server methods
A first UDP client/server
A simple UDP server
A simple UDP client
A UDP server
Summary
Questions
Section 2: An Overview of Application Layer Protocols
Section 3: Understanding Encrypted Protocols and OpenSSL
Section 4: Odds and Ends
參考文獻
- ↑ 作品、著作物與版權,道客巴巴,2014-11-09
- ↑ 書籍裝幀設計的分類及藝術表現形式,豆丁網,2016-08-14