$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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)?