15-441 Project 1 -- Checkpoint 2
For Checkpoint 2, you must have a functioning echo server. The server should:
- Accept multiple connections from different clients.
- Send each line received from a client back to that client.
- Avoid blocking; one client entering part of a line should not prevent the server from reading and echoing a line to another client.
- Handle overly-long lines gracefully (preferably by truncating); if a client connects and sends a continuous stream of characters with no newlines, your server must not crash, and should continue processing lines once a newline is encountered.
Once you believe you have completed these requirements, use the checkpoint2 script
which is the same exact script we will run to grade you.
Last updated: Tue Jan 19 16:58:09 -0500 2010
[validate xhtml]