Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost::Asio read_until and streambuf usage
From: Gonzalo Garramuno (ggarra13_at_[hidden])
Date: 2012-11-22 13:38:51


On 21/11/12 14:56, Igor R wrote:
> Do you expect std::getline to give you more than 1 line?
No, sorry I was not clear. I expect the streambuf or read_until to have
some way of telling me there's more lines to read. With that piece of
code, the streambuf swallows multiple lines, but getline only gets to
the first line. Only when read_until is run again, the other lines
appear. I need to poll? the socket for more data, but not sure how that
is done in asio.


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