🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

[HELP] Client not answering back

Started by
12 comments, last by d3vil401 9 years, 1 month ago

Well, i actually made already a shared_ptr for the Session type (which is SockHandler class) and it's being passed between all the required classes.

Infact, the server successfully sends to the client the packet, but the socket dies after the async_send.

Advertisement
Put a breakpoint in the destructor for your class that contains the socket.
FIgure out where that class gets destructred, which will destruct the socket.
Now you know what the problem is.
enum Bool { True, False, FileNotFound };

Put a breakpoint in the destructor for your class that contains the socket.
FIgure out where that class gets destructred, which will destruct the socket.
Now you know what the problem is.

Thank you, i'll work on it.

Updating:

I've been debugging it and destructor is not even being touched.

This topic is closed to new replies.

Advertisement