Appendix BMiscellaneous Windows Code

The skel.h Header

When compiling the example programs under Windows, we can use the same etcp.h as we do for UNIX (see Figure A.1). All of the system-dependent information is in the skel.h header file. The Windows version is shown in Figure B.1

Figure B.1 The Windows version of skel.h

Image

Image

Windows Compatibility Routines

Figure B.2 shows various routines that we used in our example code but that are not provided by Windows.

Figure B.2 The Windows compatibility routines

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.