
12 May
2011
12 May
'11
2:36 p.m.
Yeah - I was really mistaken. Thanks for correcting me. I reimplemented the reading using message length prefix and now everything works fine. Left just one question: socket has "receive_buffer_size" option which is by default equals 8192 - does it mean that message of length (if it will come at once) will be truncated? Or I still could read it with multiple "async_read" calles (collecting it into a buffer using data length prefix)?