18 Dec
2018
18 Dec
'18
10:08 a.m.
The beast does not seem included in 1.65 which I am running on Ubuntu
18, looks like a simple alternative is to use array as I know the
packet size to read from the async_read, the msgpack::unpack should be
happy with the array.
Thank you very much.
On 12/18/18, Vinnie Falco via Boost
On Mon, Dec 17, 2018 at 4:41 PM Steven Watanabe via Boost
wrote: asio::streambuf doesn't necessarily store contiguous data, so this can't work as is.
Actually it does, and you can simply write:
boost::beast::buffers_front(streambuf.data());
To retrieve a const_buffer to the first (and only) buffer in the data.
Thanks
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost