|
Figure 3.1 |
An example API consisting of seven operations. These seven functions are sufficient for most network applications. |
|
Figure 3.2 |
Illustration of the API calls used for a trivial interaction. The client sends one request and receives one reply. |
|
Figure 3.3 |
The three type names used in our example API. On a given computer these types are defined to be integers of a specific size. |
|
Figure 3.4 |
A summary of argument and return types for the example API. |
|
Figure 3.5 |
Illustration of the echo application, which can be used on any two computers connected to the Internet. The client program runs on one computer and the server program runs on another. |
|
Code sample EXM1 |
chatclient.c |
|
Code sample EXM2 |
chatserver.c |
|
Code sample EXM3 |
echoclient.c |
|
Code sample EXM4 |
echoserver.c |
|
Code sample EXM5 |
webclient.c |
|
Code sample EXM6 |
webserver.c |
|
Code sample HDR1 |
cnaiapi.h |