|
Boost Users : |
Subject: Re: [Boost-users] [asio] socket::read_some() splits data into twoparts.
From: Slav (slavmfm_at_[hidden])
Date: 2011-05-12 10:36:20
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)?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net