30 Jun
2009
30 Jun
'09
8:48 p.m.
What is contained inside your buffer object? If your buffer has a size of 0, then this seems like it would cause the problem.
yip, it has a size of 0. I hoped that the async receive would just increase the size of the vector as it puts the contents into it, but that is not happening.
The function you use reads an amount of data that is less or equal than your buffer size. I.e. zero. If you want to get your buffer expanding automatically, you might be interested in this function (in conjunction with asio::streambuf) : http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/reference/async_rea...