
| 这是一部传世之作!顶级网络编程专家bill fenner和andrew m.rudooff应邀执笔,对w.richard stevens的经典作品进行修订。书中吸纳了近几年网络技术的发展。增添了ipv6、sctp协议和密钥管理套接字等内容,深入讨论了最新的关键标准、实现和技术。 书中的所有示例都是在unix系统上测试通过的真实的、可运行的代码,继承了stevens一直强调的理念:“学习网络编程的最好方法就是下载这些程序,对其进行修改和改进。只有这样实际编写代码才能深入理解有关概念和方法。”读者可以从图灵网站本书网页免费注册下载这些示例的源代码。 |
| W. Richard Stevens(1951—1999) 国际知名的UNIX和网络专家,备受赞誉的技术作家。生前著有《TCP/IP详解》(三卷)、《UNIX环境高级编程》和《UNIX网络编程》(两卷),均为不朽的经典著作。 Bill Fenner AT&T实验室的主要技术人员,专攻IP多播、网络管理和测量,他是IETF路由的领域主管之一,负责审批作为RFC出版的所有路由相关文档。 Andrew M. Rudoff Sun公司的资深软件工程师,专攻网络、操作系统内核、文件系统和高可用性软件体系结构。 |
| part 1 introduction and tcp/ip 简介和tcp/ip chapter 1 introduction 简介 1.1 introduction 概述 1.2 a simple daytime client 一个简单的时间获取客户程序 1.3 protocol independence 协议无关性 1.4 error handling: wrapper functions 错误处理:包装函数 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) 用户数据报协议 2.4 transmission control protocol (tcp) 传输控制协议 2.5 stream control transmission protocol(sctp) 流控制传输协议 2.6 tcp connection establishment andtermination tcp连接的建立和终止 2.7 time_wait state time_wait状态 2.8 sctp association establishment andtermination sctp关联的建立和终止 2.9 port numbers 端口号 2.10 tcp port numbers and concurrentservers tcp端口号与并发服务器 2.11 buffer sizes and limitations 缓冲区大小及限制 2.12 standard internet services 标准因特网服务 2.13 protocol usage by common internetapplications 常见因特网应用所用的协议 2.14 summary 小结 part 2 elementary sockets 基本套接字 chanter 3 sockets introduction 套接字简介 3.1 introduction 概述 3.2 socket address structures 套接字地址结构 3.3 value-result arguments 值-结果参数 3.4 byte ordering functions 字节排序函数 3.5 byte manipulation functions 字节操纵函数 3.6 inet_aton, inet_addr, and inet_ntoa functions inet_aton、inet_addr和inet_ntoa函数 3.7 inet_pton and inet_ntop functions inet_pton和inet_ntop函数 3.8 sock_ntop and related functions 6 sock_ntop和相关函数 3.9 readn, writen, and readline functions readn、writen和readline函数 3.10 summary 小结 chapter 4 elementary tcp sockets 基本tcp套接字 4.1 introduction 概述 4.2 socket function socket函数 4.3 connect function connect函数 4.4 bind function bind函数 4.5 listen function listen函数 4.6 accept function accept函数 4.7 fork and exec functions fork和exec函数 4.8 concurrent servers 并发服务器 4.9 close function close函数 4.10 getsockname and getpeernamefunctions getsockname和getpeername函数 4.11 summary 小结 chapter 5 tcp client/server example tcp客户/服务器示例 5.1 introduction 概述 5.2 tcp echo server: main function tcp回送服务器程序:main函数 5.3 tcp echo server: str_echo function tcp回送服务器程序:str_echo函数 5.4 tcp echo client: main function tcp回送客户程序:main函数 5.5 tcp echo client: str_cli function tcp回送客户程序:str_cli函数 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函数 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 数据格式 5.19 summary 小结 chapter 6 i/o多路复用:select和poll函数 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函数 chapter 15 unix域协议 chapter 16 非阻塞i/o chapter 17 ioctl操作 chapter 18 路由套接字 chapter 19 密钥管理套接字 chapter 20 广播 chapter 21 多播 chapter 22 高级udp套接字 chapter 23 高级sctp套接字 chapter 24 带外数据 chapter 25 信号驱动i/o chapter 26 线程 chapter 27 ip选项 chapter 28 原始套接字 chapter 29 数据链路访问 chapter 30 多种客户/服务器设计方式 chapter 31 streams appendix a ipv4、ipv6、icmpv4和icmpv6 appendix b 虚拟网络 appendix c 调试技术 appendix d 其他源代码 appendix e 精选习题答案 参考文献 索引 |
商品评论(0条)