Foreword.
Preface.
Part 1. INTRODUCTION AND 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 the Text.
1.7 OSI Model.
1.8 BSD Networking History.
1.9 Test Networks and Hosts.
1.10 Unix Standards.
1.11 64-Bit Architectures.
1.12 Summary.
Chapter 2. The Transport Layer: TCP, UDP, and 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 and Termination.
2.7 TIME_WAIT State.
2.8 SCTP Association Establishment and Termination.
2.9 Port Numbers.
2.10 TCP Port Numbers and Concurrent Servers.
2.11 Buffer Sizes and Limitations.
2.12 Standard Internet Services.
2.13 Protocol Usage by Common Internet Applications.
2.14 Summary.
Part II. ELEMENTARY SOCKETS.
Chapter 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.
3.7 inet_pton and inet_ntop Functions.
3.8 sock_ntop and Related Functions.
3.9 readn, writen, and readline Functions.
3.10 Summary.
Chapter 4. Elementary TCP Sockets.
Chapter 5. TCP Client/Server Example.
Chapter 6. I/O Multiplexing: The select and poll Functions.
Chapter 7. Socket Options.
Chapter 8. Elementary UDP Sockets.
Chapter 9. Elementary SCTP Sockets.
Chapter 10. SCTP Client/Server Example.
Chapter 11. Name and Address Conversions.
Part III. ADVANCED SOCKETS.
Chapter 12. IPv4 and IPv6 Interoperability.
Chapter 13. Daemon Processes and the inetd Superserver.
Chapter 14. Advanced I/O Functions.
Chapter 15. Unix Domain Protocols.
Chapter 16. Nonblocking I/O.
Chapter 17. ioctl Operations.
Chapter 18. Routing Sockets.
Chapter 19. Key Management Sockets.
Chapter 20. Broadcasting.
Chapter 21. Multicasting.
Chapter 22. Advanced UDP Sockets.
Chapter 23. Advanced SCTP Sockets.
Chapter 24. Out-of-Band Data.
Chapter 25. Signal-Driven I/O.
Chapter 26. Threads.
Chapter 27. IP Options.
Chapter 28. Raw Sockets.
Chapter 29. Datalink Access.
Chapter 30. Client/Server Design Alternatives.
Chapter 31. STREAMS.
Appendix A. IPv4, IPv6, ICMPv4, and ICMPv6.
Appendix B. Virtual Networks.
Appendix C. Debugging Techniques.
Appendix D. Miscellaneous Source Code.
Appendix E. Solutions to Selected Exercises.
Bibliography.
Index.