Table of Contents - Chapter 3 |
Network Programming And Applications
|
| 3.1 |
Introduction |
19 |
| 3.2 |
Network Communication |
20 |
| 3.3 |
Client-Server Computing |
20 |
| 3.4 |
Communication Paradigm |
21 |
| 3.5 |
An Example Application Program Interface |
21 |
| 3.6 |
An Intuitive Look At The API |
22 |
| 3.7 |
Definition Of The API |
22 |
| 3.7.1 |
The Await_Contact Function |
23 |
| 3.7.2 |
The Make_Contact Function |
23 |
| 3.7.3 |
The Appname_To_Appnum Function |
23 |
| 3.7.4 |
The Cname_To_Comp Function |
24 |
| 3.7.5 |
The Send Function |
24 |
| 3.7.6 |
The Recv And Recvln Functions |
24 |
| 3.7.7 |
The Send_Eof Function |
25 |
| 3.7.8 |
Summary Of API Types |
25 |
| 3.8 |
Code For An Echo Application |
25 |
| 3.8.1 |
Example Echo Server Code |
26 |
| 3.8.2 |
Example Echo Client Code |
28 |
| 3.9 |
Code For A Chat Application |
31 |
| 3.9.1 |
Example Chat Server Code |
31 |
| 3.9.2 |
Example Chat Client Code |
33 |
| 3.10 |
Code For A Web Application |
35 |
| 3.10.1 |
Example Web Client Code |
36 |
| 3.10.2 |
Example Web Server Code |
38 |
| 3.11 |
Managing Multiple Connections With The Select Function |
43 |
| 3.12 |
Summary |
43 |
|
Exercises |
44 |