|
Boost Users : |
Subject: Re: [Boost-users] [asio] Problem implementing a line-based protocol
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2011-01-11 09:27:04
On 01/11/2011 02:23 PM, Hannes Brandstätter-Müller wrote:
> Could you provide example code?
>
> As you might notice, the PARAMETERNAMES is missing a "PARA"
>
> Hannes
>
I think you should make sure the istream is destructed before the
underlying streambuf is touched again (in thise case, through
start_read). E.g., just put the stuff after declaring the msg until just
before the point where you call start_read in its own scope.
HtH,
Rutger
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