Boost logo

Boost Users :

Subject: Re: [Boost-users] [ASIO] Wrong usage of streambuf ?
From: Axel (axel.boost_at_[hidden])
Date: 2009-12-10 04:55:57


  On 10/12/2009 10:24, Igor R wrote:
>> response_.consume(2) ;
> "ok\r\n" is 4 bytes, why do you consume 2?

Because just before, the 2 bytes of "ok" are consumed by
response_stream.read(response_char, message_size) ;
I assume that this read() call consume them, no ?


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