|
作者:W. Richard Stevens, Bill Fenner, Andrew M. Rudoff
出版日期:November 21, 2003
出版社:Addison Wesley
页数:1024
ISBN:0-13-141155-1
文件格式:CHM
UNIX Network Programming, Volume 1 [an excerpt from the preface...] This book is for people who want to write programs thatcommunicate with each other using an application program interface(API) known as sockets. Some readers may be very familiar with socketsalready, as that model has become synonymous with network programming.Others may need an introduction to sockets from the ground up. The goalof this book is to offer guidance on network programming for beginnersas well as professionals, for those developing new network-awareapplications as well as those maintaining existing code, and for peoplewho simply want to understand how the networking components of theirsystem function.All the examples in this text are actual, runnable code tested onUnix systems. However, many non-Unix systems support the sockets APIand the examples are largely operating system-independent, as are thegeneral concepts we present. Virtually every operating system (OS)provides numerous network-aware applications such as Web browsers,email clients, and file-sharing servers. We discuss the usualpartitioning of these applications into client and server and write ourown small examples of these many times throughout the text.
The Third Edition [an excerpt from the preface...] Sockets have been around, more or less in their currentform, since the 1980s, and it is a tribute to their initial design thatthey have continued to be the network API of choice. Therefore, it maycome as a surprise to learn that quite a bit has changed since thesecond edition of this book was published in 1998. The changes we’vemade to the text are summarized as follows:- This new edition contains updated information on IPv6, which wasonly in draft form at the time of publication of the second edition andhas evolved somewhat.
- The descriptions of functions and the examples have all beenupdated to reflect the most recent POSIX specification (POSIX1003.1-2001), also known as the Single Unix Specification Version 3.
- The coverage of the X/Open Transport Interface (XTI) has beendropped. That API has fallen out of common use and even the most recentPOSIX specification does not bother to cover it.
- The coverage of TCP for transactions (T/TCP) has been dropped.
- Three chapters have been added to describe a relatively newtransport protocol, SCTP. This reliable, message-oriented protocolprovides multiple streams between endpoints and transport-level supportfor multihoming. It was originally designed for transport of telephonysignaling across the Internet, but provides some features that manyapplications could take advantage of.
- A chapter has been added on key management sockets, which may be used with Internet Protocol Security (IPsec) and other network security services.
- The machines used, as well as the versions of their variants ofUnix, have all been updated, and the examples have been updated toreflect how these machines behave. In many cases, examples were updatedbecause OS vendors fixed bugs or added features, but as one mightexpect, we’ve discovered the occasional new bug here and there. Themachines used for testing the examples in this book were:
- Apple Power PC running MacOS/X 10.2.6
- HP PA-RISC running HP-UX 11i
- IBM Power PC running AIX 5.1
- Intel x86 running FreeBSD 4.8
- Intel x86 running Linux 2.4.7
- Sun SPARC running FreeBSD 5.1
- Sun SPARC running Solaris 9
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|