
23 May
2010
23 May
'10
7:39 p.m.
Do you always supply the same buffer for any async_receive? So a new data always overwrites the old one? Then, maybe you calculate 1st message size incorrectly, and "zero" prefix you observe in the buffer before the beginning of the 2nd header might be just a trailing zero of the previous message. Try adding 1 to the calculated bodySize() :)
Thank you! You were correct, I had forgotten to account for a trailing zero in packets and it was carrying over into following receives. I feel so foolish... Thanks again :)