9 Dec
2009
9 Dec
'09
7:18 p.m.
I'd like to be able to skip the buffer and just read directly to the stream with an event to notify me of the arrival of data.
You can use asio::streambuf. It inherits std::streambuf, and you can use it with istream and ostream, just as you do with standard streambufs. But note that any buffer must outlive the async.operation.