Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::asio::read_until reads too much!
From: Scott Gifford (sgifford_at_[hidden])
Date: 2009-02-21 00:56:20


"Rob Currey" <avalonforest_at_[hidden]> writes:

[...]

> In my app I need to read the 8 bytes (after the 26) as binary (and hence don't
> use the streambuf to do so).
> Yet read_until has already consumed them from the socket and placed them in the
> streambuf :(
>
> Suggestions?

Can you just pull the raw bytes directly from the streambuf? It
should contain the bytes that were sent; as far as I know it doesn't
do any translation or change them at all.

----Scott.


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