[cse491] HW #3 pt. 2

C. Titus Brown ctb at msu.edu
Wed Sep 23 19:08:21 PDT 2009


On Wed, Sep 23, 2009 at 07:40:32PM -0400, Joe Amenta wrote:
> The instructions in HW #3 pt. 2 say to terminate when a "\n.\n" is
> received... what about "\r\n.\r\n"?  Should we normalize line endings to "\n
> "?

Up to you; I'll test \n only.  A more important point is that you will
need to keep track of aggregate data received, so that if you get

\n

in one recv() call and

.\n

in the next, you know to exit.

cheers,
--titus
-- 
C. Titus Brown, ctb at msu.edu



More information about the cse491-fall-2009 mailing list