View Single Post
Old Dec 29th, 2006, 5:42 PM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
012 is the octal value for a line feed, could be the reason the transfer seems to be splitting.

Prior to sending and receiving the data, trim it. Make sure your buffer is large enough to hold the largest data expected.

string Trim (string str)
{
    int notwhite = str.find_last_not_of(" \t\n");
    str.erase(notwhite+1);
    return str;
}
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote