How do you parse TCP stream into lines?
I guess you need to use a buffer and streaming parser.