Did not try this, but if I read the documents correctly, this class inherits from std::streambuf, in which case you can do this this:
std::istream buffer( my_asio_streambuf_ptr );
std::stringstream string_buffer;
buffer >> string_buffer.rd_buf();
There are many ways to do this, and each has its pros and cons. If you can explain the problem in more detail, we can offer more specific help.
source
share