Thursday, September 1, 2011

implement a getline

This is a typical situation when you deal with the TCP/IP stack. One underlying layer defines a blocking read which reads into a buffer. You need to use this read for implementing a getLine() which reads until \n. You can have multiple calls of getLine()

here is the code

No comments:

Post a Comment