i know this thread is closed since 4 years but i can't resist... (and the solution may be interesting for many people)
the problem is simply that NULL bytes, also called NUL character are end-of-string delimiters. so, when printing/processing your buffer as a string, any function will ignore what lies beyond the first NUL character.
store the value returned by ClientTCPRead which represent the number of bytes read from the socket, then replace every NULL byte in your buffer by a printable character up to the number of bytes received, and guess what ? all your lines will automagically appear !
Message Edited by dummy_decoy on
01-30-2008 12:08 PM