Code Samples from the Text

Computer Networks and Internets includes several example programs written in C. The README file included with the code in Chapter 3 describes how to compile the code examples.

Chapter 3 describes an Application Program Interface (API) for building networked applications. The code for the API and several applications that use the API is included on this Web site at http://www.netbook.cs.purdue.edu/cnaiapi. Here is a list of the cover pages for the API code and examples:

API code:

Example code: Header files:

Here is a list of cover pages for the other code samples from the text