好书推荐 好书速递 排行榜 读书文摘

Effective TCP/IP Programming

Effective TCP/IP Programming
作者:Jon C. Snader
副标题:44 Tips to Improve Your Network Programs
出版社:Addison-Wesley Professional
出版年:2000-01
ISBN:9780201615890
行业:计算机
浏览数:122

内容简介

Programming in TCP/IP can seem deceptively simple. Nonetheless, many network programmers recognize that their applications could be much more robust. Effective TCP/IP Programming is designed to boost programmers to a higher level of competence by focusing on the protocol suite's more subtle features and techniques. It gives you the know-how you need to produce highly effective TCP/IP programs.

In forty-four concise, self-contained lessons, this book offers experience-based tips, practices, and rules of thumb for learning high-performance TCP/IP programming techniques. Moreover, it shows you how to avoid many of TCP/IP's most common trouble spots.

Effective TCP/IP Programming offers valuable advice on such topics as:

Exploring IP addressing, subnets, and CIDR Preferring the sockets interface over XTI/TLI Using two TCP connections Making your applications event-driven Using one large write instead of multiple small writes Avoiding data copying Understanding what TCP reliability really means Recognizing the effects of buffer sizes Using tcpdump, traceroute, netstat, and ping effectively

Numerous examples demonstrate essential ideas and concepts. Skeleton code and a library of common functions allow you to write applications without having to worry about routine chores.

Through individual tips and explanations, you will acquire an overall understanding of TCP/IP's inner workings and the practical knowledge needed to put it to work. Using Effective TCP/IP Programming, you'll speed through the learning process and quickly achieve the programming capabilities of a seasoned pro.

......(更多)

作者简介

Jon Snader TCP/IP专家,Paradigm4的资深软件工程师。他的工作领域包括通信、网络、编译器开发、操作系统以及无线网络控制器等。最近主要从事公共安全市场的报文交换系统方面的工作。

......(更多)

目录

......(更多)

读书文摘

最后这一点通常可以为我们提供一些便利。用 how = 1 来调用 shutdown 时,不管其他进程是否打开了这个套接字,都可以保证对等实体会收到一个 EOF。调用 close 或 closesocket 就无法确保这一点,因为套接字的引用计数减少到零之前,它都不会将 FIN 发送给对等实体。也就是说,所有进程关闭套接字后,它才将 FIN 发送给对等实体。

......(更多)

猜你喜欢

点击查看