Chapter 5. TCP ClientServer Example


Chapter 5. TCP Client/Server Example

Section 5.1.   Introduction

Section 5.2.   TCP Echo Server: main Function

Section 5.3.   TCP Echo Server: str_echo Function

Section 5.4.   TCP Echo Client: main Function

Section 5.5.   TCP Echo Client: str_cli Function

Section 5.6.   Normal Startup

Section 5.7.   Normal Termination

Section 5.8.   POSIX Signal Handling

Section 5.9.   Handling SIGCHLD Signals

Section 5.10.   wait and waitpid Functions

Section 5.11.   Connection Abort before accept Returns

Section 5.12.   Termination of Server Process

Section 5.13.   SIGPIPE Signal

Section 5.14.   Crashing of Server Host

Section 5.15.   Crashing and Rebooting of Server Host

Section 5.16.   Shutdown of Server Host

Section 5.17.   Summary of TCP Example

Section 5.18.   Data Format

Section 5.19.   Summary

Exercises



UNIX Network Programming Volume 1, Third Edition
Unix Network Programming, Volume 1: The Sockets Networking API (3rd Edition)
ISBN: 0131411551
EAN: 2147483647
Year: 2003
Pages: 441

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net