Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.

  • Apple
  • Android
  • Windows Phone
  • Android

To get the free app, enter your mobile phone number.

Buy Used
FREE Shipping on orders over $25.
Condition: Used: Good
Comment: Good Condition. May have wrinkles on cover and pages. Also may have "Used Book Stickers Present" Normal wear. Fast Shipping from Amazon. Qualifies for Prime Shipping & Free Shipping on Book Orders $25 and Up.
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

UNIX Network Programming: Networking APIs: Sockets and XTI; Volume 1 Hardcover – January 15, 1998

4.6 out of 5 stars 50 customer reviews

See all 2 formats and editions Hide other formats and editions
New from Used from
"Please retry"
$21.99 $0.59

There is a newer edition of this item:

Windows 10 For Dummies Video Training
Get up to speed with Windows 10 with this video training course from For Dummies. Learn more.
click to open popover

Editorial Reviews

Amazon.com Review

The classic programming text Unix Network Programming has been updated by author W. Richard Stevens to encompass three new volumes. There have been a few changes in the computing world since 1990 (the year the original was published), and Stevens has taken the opportunity to create a complete set of reference manuals for programmers of all skill levels.

The first volume, Networking APIs: Sockets and XTI, covers everything you need to know to make your programs communicate over networks. Stevens covers everything from writing your programs to be compatible with both Internet Protocol version 4 (IPv4) and IPv6, to raw sockets, routing sockets, User Datagram Protocol (UDP), broadcasting/multicasting, routing sockets, server internals, and more, plus a section covering Posix threads.

Stevens also notes compatibility issues with different operating systems so that readers can create code that is more portable, and he offers plenty of advice on how to make code more robust. --Doug Beaver

From the Back Cover

The only guide to UNIX network programming APIs you'll ever need!

Whether you write Web servers, client/server applications, or any other network software, you need to understand networking APIS—especially sockets in greater detail than ever before. You need UNIX Network Programming, Volume 1, Second Edition.

In this book, leading UNIX networking expert W. Richard Stevens offers unprecedented, start-to-finish guidance on making the most of sockets, the de facto standard for UNIX network programming—as well as extensive coverage of the X/Open Transport Interface (XTI).

Stevens begins by introducing virtually every basic capability of TCP and UDP sockets, including socket functions and options, I/O multiplexing, and name and address conversions. He presents detailed coverage of the Posix.1g standard for sockets and the Posix threads. He also introduces advanced techniques for:

  • Establishing IPv4/IPv6 interoperability.
  • Implementing non-blocking I/O.
  • Routing sockets.
  • Broadcasting and multicasting.
  • IP options.
  • Multithreading.
  • Advanced name and address conversions.
  • UNIX domain protocols.
  • Raw sockets.

Learn how to choose among today's leading client/server design approaches, including TCP iterative, concurrent, preforked and prethreaded servers. Master the X/Open Transport Interface, including XTI TCP clients and servers, name and address functions, options, streams and additional functions.

The Internet/intranet revolution has dramatically increased the demand for developers with a sophisticated understanding of network programming APIs, especially sockets. One book contains all you need to know: UNIX Network Programming, Volume 1, Second Edition.


The latest book club pick from Oprah
"The Underground Railroad" by Colson Whitehead is a magnificent novel chronicling a young slave's adventures as she makes a desperate bid for freedom in the antebellum South. See more

Product Details

  • Hardcover: 1009 pages
  • Publisher: Prentice Hall PTR; 2 Sub edition (January 15, 1998)
  • Language: English
  • ISBN-10: 013490012X
  • ISBN-13: 978-0134900124
  • Product Dimensions: 9.7 x 7.4 x 1.6 inches
  • Shipping Weight: 3.8 pounds
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (50 customer reviews)
  • Amazon Best Sellers Rank: #696,188 in Books (See Top 100 in Books)

Customer Reviews

Top Customer Reviews

Format: Hardcover
The book is very good for touching on quite a few topics in Network programming and doing so in a concise way. However, when reading the book I often felt as if I wasn't learning socket programming so much as learning how to access Steven's personal API to socket programming. When Stevens introduces a new concept he will immediately afterwords introduce a wrapper function that he uses to do it 'correctly'. From then on he will continue to use this wrapper function throughout the rest of the book whenever he needs to use the stanard library function. In fact, in any 10 lines of source in the book it seems like there will be 7 wrapper functions. This of course makes it very hard to use the book as a reference unless you are resigned to using Steven's wrapper library in all of your projects. In several cases, when attempting to reference some concept I ended up flipping through several pages in different chapters to look up definitions and prototypes for these functions in different place, and then diging deeper into the function to decipher what was going on. All I really wanted was a quick answer to a specific question concerning a socket. I can't deny that what he ends up with is a nicely done system for working with sockets, but I don't feel a general programming text should take this approach. I'll be shopping for a different socket book to use as a desk reference.
1 Comment 78 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Hardcover
This is one of two must-have UNIX books ("UNIX Network Programming" and "Advanced Programming for the UNIX Environment"). After I had been using UNIX for a long time and was getting into more advanced UNIX programming about a decade ago, these two books were recommended. I checked around and made comparisons. Sure enough, I had to agree. I bought both of them and use them a lot, even when doing Windows programming.
As an example, I had to reference them again this weekend. I am using Visual Basic and C++ under Windows to connect some UDP/IP communications between applications. Once again, these books were indispensable (even after looking at online help, Google, Microsoft Knowledge Base and Experts-Exchange). Any Internet professional should have both of these books on their shelf.
Comment 18 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Hardcover
First things first. This is an excellent book. It is also by far the best book on its subject. Those are the first, simplest, and most important things to understand about it.
Before explaining what makes it so good, let's get the table of contents out of the way:
Part 1. Introduction and TCP/IP
1. Introduction
2. The Transport Layer: TCP and UDP
Part 2. Elementary Sockets
3. Sockets Introduction
4. Elementary TCP Sockets
5. TCP Client-Server Example
6. I/O Multiplexing: The select() and poll() Functions
7. Socket Options
8. Elementary UDP Sockets
9. Elementary Name and Address Conventions
Part 3. Advanced Sockets
10. IPv4 and IPv6 Interoperability
11. Advanced Name and Address Conversions
12. Daemon Processes and 'inetd' Superserver
13. Advanced I/O Functions
14. Unix Domain Protocols
15. Non-Blocking I/O
16. ioctl() Operations
17. Routing Sockets
18. Broadcasting
19. Multicasting
20. Advanced UDP Sockets
21. Out-of-Band Data
22. Signal-Driven I/O
23. Threads
24. IP Options
25. Raw Sockets
26. Datalink Access
27. Client-Server Design Alternatives
Part 4. XTI: X/Open Transport Interface
28. XTI: TCP Clients
29. XTI: Name and Address Functions
30. XTI: TCP Servers
31. XTI: UDP Clients and Servers
32. XTI Options
33. Streams
34. XTI: Additional Functions
Appendix A. IPv4, IPv6, ICMPv4, ICMPv6
Appendix B. Virtual Networks
Appendix C. Debugging Techniques
Appendix D. Miscellaneous Source Code
Appendix E. Solutions to Selected Exercises
A. Function Prototypes
Read more ›
Comment 26 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
By cal on February 17, 2000
Format: Hardcover
W. Stevens is actually the departed person I think most about missing. Just browsing through his book, I learned more about networking and network programming than I have from any other place. Any implemtation, no matter the language or platform, is relatively transparent after reading this book.
He gives a great deal of himself in all his books I've read; sharing the little test programs he writes to finally pin down how something is implemented. And he did all the grunt work of communicating with people like Kernighan and Ritchie to elucidate some points that are not found in books.
This is a very good teacher of his field, which happens to be perhaps the most explosive field of this time.
Comment 12 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Hardcover
This is one of the best programming books I have bought! I had several questions I was battling with on current projects, and this book helped greatly in getting resolution. With a server app on a Solaris box, I was able to get all my client apps on Linux, SCO, and even Winsuck to communicate seamlessly, and efficiently! Not for the absolute beginner, some tweaking is needed on some platforms, but anyone with basic C skills and eager to learn this material, this is a must have book!
Comment 9 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse

Most Recent Customer Reviews