In a mobile multiplayer game, in the event of a disconnection, I would like to give a victory to the player that was not disconnected.
I’m doing multiple tests like starting a basic game and connecting them with the NetworkManagerGUI. If I closes the host player, the other player receive something like: lost connection from the server.
I tried the same test, but this time I closed the client’s WiFi and still received : lost connection from the server.
Is it even possible to know the difference? (between a disconnection and a connection drop)
Is it possible in Peers-to-peers to know who really disconnected and be fair to players?
Maybe I need to check the reachability when a disconnection occurs, so I know who really lost the connection?
But what if both of them are on the same network and it fails?
I suppose this needs to use a server that know which player left the game and what I want to do is just not possible in p2p?