Boost Users :
Subject: Re: [Boost-users] [ASIO] Wrong usage of streambuf ?
From: Jay Sprenkle (jsprenkle_at_[hidden])
Date: 2009-12-09 13:38:20
On Tue, Dec 8, 2009 at 8:03 AM, Axel <axel.boost_at_[hidden]> wrote:
> When I don't read the data sent by the server, I manage to close the socket
> and repeat the operation (close the socket, and reconnect to the server).
> When I read the data, the program seems to block.
I'm new to this too but I'll suggest some things.
Is response_ an iostream?
If so it might be that the read() operation is trying to read from the
socket associated with the iostream and not the socket you've connected to
-- Cause united breaks guitars http://www.youtube.com/watch?v=5YGc4zOqozo
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