Douglas E. Comer
Computer Science Department
Purdue University
West Lafayette, IN 47907
webmaster: W. David Laverell
Companion
Topics
Home
Book
Information
Purpose
of Site
Getting
Started
Students
Faculty
"What's
New"
"Coming
Attractions"
"C Pointers"
Acknowledgements
|
|
Hands-On Networking: Experiment 6.2
Home > Student > Experiments > 6.2
Experiment 6.2
First, the answer to the question posed in Experiment 6.1.
In client.c you find the following code fragment:
The client is waiting for more data. It will not learn
that there is no more data until the server terminates
the TCP connection. So when you
modify this code to get a chat server and client, you
must do what was done in the starter code in chapter 5.
You must test for a \n character.
Note that there is a forever loop in server.c which allows
for multiple connections. You must put your own loop inside
this one.
This site is maintained by W. David Laverell
of the Computer Science Department
at Calvin College. For assistance or corrections,
please contact him at . |
|