On Tue, Dec 8, 2009 at 8:03 AM, Axel <axel.boost@laposte.net> 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 the server.

--
Cause united breaks guitars
http://www.youtube.com/watch?v=5YGc4zOqozo