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, message_size) ;
I assume that this read() call consume them, no ?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at