Boost logo

Boost Users :

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

  On 10/12/2009 12:17, Igor R wrote:
>> Because just before, the 2 bytes of "ok" are consumed by
>>, message_size) ;
>> I assume that this read() call consume them, no ?
> No.

I tried to consume the amount of bytes transferred (4 in this case),
without success.
What makes me think that my problem is stream-related is that when I
don't try to read the answer from the server, I successful close the
socket , reconnect, and repeat the process without problem.

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