17 Jul
2012
17 Jul
'12
9:15 a.m.
As I worte in a previous posting - the example section contains code which integrates a coroutine inside a streambuf so that the stream using this streambuf can be used as usual (without blocking the application)
inbuf ib( socket); istream is( & ib); std::string line; do { std::getline( line); ... } while ( line != "exit");
I can't seem to find that example section you mention in coroutine docs.
download the archive from http://olk.bplaced.net/boost-coroutine.zip - the streambuffer code can be found in directory libs/coroutine/examples/coroutine/asio/stream regards, Oliver