I have a thread that run until the socket is connected and read from it, but I don't have an answer from the server when I want to close the socket.
When my destructor is called my client chrash.. Is possible stop the read or do something that let me close the socket without errors? thanks
Samuele
I think you should use non-blocking reads and/or select.