Boost logo

Boost Users :

Subject: Re: [Boost-users] [context] Release date?
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2012-07-17 05:15:47


> > 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


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