Boost logo

Boost Users :

Subject: [Boost-users] [Asio] Making custom std::streambuf for async_read
From: knarks_at_[hidden]
Date: 2016-08-09 01:13:33


At the moment I'm using async_read with boost::asio::streambuf and this
works fine but I need a custom stream where every invoke to async_read
appends the data to my stream. The stream should be based on
std::streambuf because I want to keep the asio interface hidden to the
user.

My first idea was to search for the problem and I ended up with reading
about MutableBufferSequence but I don't know if this is the right way
and how to implement this in my streambuf object. Any help is higly
appreciated.


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