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
>> response_stream.read(response_char, 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 hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net