Search code examples
androidsocketsmultiplayer

Receive information through the socket does not work properly


I am developing a multiplayer android game, which is sending information through sockets. The game is working fine, but sometimes, it seems that the information that is being sent does not get received. Therefore, I would like a way to ensure that the information goes through. Is this possible?


Solution

  • You have to ensure it yourself,(i'm assuming you are developping the server side as well.) For exemple you can create a server response for each message you send through the socket and try to resend this message as long as the server don't respond correctly.