Appendix AMiscellaneous UNIX Code
The etcp.h
Header
Almost all of our example programs start by including the etcp.h
header file (Figure A.1). This file contains the other includes that we generally need, including skel.h
(Figure 2.14) as well as a few other defines, typedefs, and prototypes.
The daemon
Function
The daemon
function that we use in tcpmux
is a standard BSD library routine. For SVR4 systems, we supply the version presented in Figure A.2.
The signal
Function
As we ...
Get Effective TCP/IP Programming: 44 Tips to Improve Your Network Programs now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.