You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to find out if the current client is still connected to the server side (on the server side) but i couldn't find any way to do that
I found out that with this sketchy code it works in some cases :
result = socket.read(buffer, sizeof(buffer));
if (result.error().value() == 0 && result.value() == 0) {
// Runs most of the time when the client disconnects
}
socket is a sockpp::tcp_socket
Thanks for the help in advance
The text was updated successfully, but these errors were encountered:
I want to find out if the current client is still connected to the server side (on the server side) but i couldn't find any way to do that
I found out that with this sketchy code it works in some cases :
socket is a sockpp::tcp_socket
Thanks for the help in advance
The text was updated successfully, but these errors were encountered: