[Instructions] [Search] [Current] [News] [Syllabus] [Glance] [Links] [Handouts] [Outlines] [Labs] [Assignments] [Exams] [Examples] [Project]
Assigned: Wednesday, February 2, 2000
Due: Monday, February 7, 2000
Update the sample client and server so that they can be used for a simple chat application.
Assume that the old-fashioned chat protocol is followed. The "client" gets to
write first. The two alternate writing, with the current writer getting to write
until (s)he gives up control. An o
on a line by itself means "I'm
done with my turn, it's your turn to write" and oo
on a line by
itself means "Bye!". You can compare strings with strcmp
(read the
man page for more info).
Note that you do not need to understand every part of these programs to make
these changes. The essential parts are in the loops at the end of each
main
method.
For extra credit, support a more elegant chat (whatever you deem that to mean) and use better program design (particularly putting common code in a shared library).
Additional Notes:
Wednesday, February 2, 2000
Friday, February 4, 2000
[Instructions] [Search] [Current] [News] [Syllabus] [Glance] [Links] [Handouts] [Outlines] [Labs] [Assignments] [Exams] [Examples] [Project]
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
This page may be found at http://www.math.grin.edu/~rebelsky/Courses/CS364/2000S/Assignments/assign.01.html
Source text last modified Fri Feb 4 12:48:13 2000.
This page generated on Fri Feb 4 12:54:23 2000 by Siteweaver. Validate this page's HTML.
Contact our webmaster at rebelsky@grinnell.edu