I'm relatively new to networking in general but I've been looking into networking as a kind of side project.
Anyways, I've been trying to solve the problem of the client suddenly disconnecting in a way that doesn't allow SFML to automatically tell the server it has disconnected, and thus the server has continues to wait indefinitely (I think there's a timeout built into windows but I think it's like 7 hours, which is way too long).
So I'm trying to find a way to implement keepalive packets but have found nothing about in with SFML and I can't seem to find a way to tinker with SFML's packet's raw data?
Any suggestions or resolutions to the problem?