Part 1 Introduction and TCP/IP
簡介和TCP/IP
Chapter 1 Introduction
簡介
1.1 Introduction
概述
1.2 A Simple Daytime Client
一個簡單的時間獲取客戶程序
1.3 Protocol Independence
協(xié)議無關性
1.4 Error Handling: Wrapper Functions
錯誤處理:包裝函數(shù)
1.5 A Simple Daytime Server
一個簡單的時間獲取服務器程序
1.6 Roadmap to Client/Server Examples in theText
本書中客戶/服務器示例的路線圖
1.7 OSI Model
OSI模型
1.8 BSD Networking History
BSD網絡歷史
1.9 Test Networks and Hosts
測試用網絡及主機
1.10 Unix Standards
Unix標準
1.11 -Bit Architectures
位體系結構
1.12 Summary
小結
Chapter 2 The Transport Layer: TOP,UDP, and SCTP
傳輸層:TCP、UDP和SCTP
2.1 Introduction
概述
2.2 The Big Picture
全景圖
2.3 User Datagram Protocol (UDP)
用戶數(shù)據報協(xié)議
2.4 Transmission Control Protocol (TCP)
傳輸控制協(xié)議
2.5 Stream Control Transmission Protocol(SCTP)
流控制傳輸協(xié)議
2.6 TCP Connection Establishment andTermination
TCP連接的建立和終止
2.7 TIME_WAIT State
TIME_WAIT狀態(tài)
2.8 SCTP Association Establishment andTermination
SCTP關聯(lián)的建立和終止
2.9 Port Numbers
端口號
2.10 TCP Port Numbers and ConcurrentServers
TCP端口號與并發(fā)服務器
2.11 Buffer Sizes and Limitations
緩沖區(qū)大小及限制
2.12 Standard Internet Services
標準因特網服務
2.13 Protocol Usage by Common InternetApplications
常見因特網應用所用的協(xié)議
2.14 Summary
小結
Part 2 Elementary Sockets
基本套接字
Chanter 3 Sockets Introduction
套接字簡介
3.1 Introduction
概述
3.2 Socket Address Structures
套接字地址結構
3.3 Value-Result Arguments
值-結果參數(shù)
3.4 Byte Ordering Functions
字節(jié)排序函數(shù)
3.5 Byte Manipulation Functions
字節(jié)操縱函數(shù)
3.6 inet_aton, inet_addr, and inet_ntoa Functions
inet_aton、inet_addr和inet_ntoa函數(shù)
3.7 inet_pton and inet_ntop Functions
inet_pton和inet_ntop函數(shù)
3.8 sock_ntop and Related Functions 6
sock_ntop和相關函數(shù)
3.9 readn, writen, and readline Functions
readn、writen和readline函數(shù)
3.10 Summary
小結
Chapter 4 Elementary TCP Sockets
基本TCP套接字
4.1 Introduction
概述
4.2 socket Function
socket函數(shù)
4.3 connect Function
connect函數(shù)
4.4 bind Function
bind函數(shù)
4.5 listen Function
listen函數(shù)
4.6 accept Function
accept函數(shù)
4.7 fork and exec Functions
fork和exec函數(shù)
4.8 Concurrent Servers
并發(fā)服務器
4.9 close Function
close函數(shù)
4.10 getsockname and getpeernameFunctions
getsockname和getpeername函數(shù)
4.11 Summary
小結
Chapter 5 TCP Client/Server Example
TCP客戶/服務器示例
5.1 Introduction
概述
5.2 TCP Echo Server: main Function
TCP回送服務器程序:main函數(shù)
5.3 TCP Echo Server: str_echo Function
TCP回送服務器程序:str_echo函數(shù)
5.4 TCP Echo Client: main Function
TCP回送客戶程序:main函數(shù)
5.5 TCP Echo Client: str_cli Function
TCP回送客戶程序:str_cli函數(shù)
5.6 Normal Startup
正常啟動
5.7 Normal Termination
正常終止
5.8 POSIX Signal Handling
POSIX信號處理
5.9 Handling SIGCHLD Signals
處理SIGCHLD信號
5.10 wait and waitpid Functions
wait和waitpid函數(shù)
5.11 Connection Abort before acceptReturns
accept返回前連接異常中止
5.12 Termination of Server Process
服務器進程的終止
5.13 SIGPIPE Signal
SIGPIPE信號
5.14 Crashing of Server Host
服務器主機崩潰
5.15 Crashing and Rebooting of Server Host
服務器主機崩潰及重啟
5.16 Shutdown of Server Host
服務器主機關機
5.17 Summary of TCP Example
TCP示例小結
5.18 Data Format
數(shù)據格式
5.19 Summary
小結
Chapter 6 I/O多路復用:select和poll函數(shù)
Chapter 7 套接字選項
Chapter 8 基本UDP套接字
Chapter 9 基本SCTP套接字
Chapter 10 SCTP客戶/服務器示例
Chapter 11 名字與地址轉換
Part 3 高級套接字
Chapter 12 IPv4與IPv6的互操作性
Chapter 13 守護進程和inetd超級服務器程序
Chapter 14 高級I/O函數(shù)
Chapter 15 Unix域協(xié)議
Chapter 16 非阻塞I/O
Chapter 17 ioctl操作
Chapter 18 路由套接字
Chapter 19 密鑰管理套接字
Chapter 20 廣播
Chapter 21 多播
Chapter 22 高級UDP套接字
Chapter 23 高級SCTP套接字
Chapter 24 帶外數(shù)據
Chapter 25 信號驅動I/O
Chapter 26 線程
Chapter 27 IP選項
Chapter 28 原始套接字
Chapter 29 數(shù)據鏈路訪問
Chapter 30 多種客戶/服務器設計方式
Chapter 31 STREAMS
Appendix A IPv4、IPv6、ICMPv4和ICMPv6
Appendix B 虛擬網絡
Appendix C 調試技術
Appendix D 其他源代碼
Appendix E 精選習題答案
參考文獻
索引