When communicating with serial port, I can set the serial port in Canonical Mode so that each read() call will return util a line comes, and at most one line.
assumes the line separator is \r\n.
Does TCP/IP communication support this feature?
I know that TCP/IP is based on stream and will take 'a','b','c' and '\r','\n' all the same, but I really don't want to parse the message char by char to find '\r','\n' in application.