get a good security for multiplayer game

前端 未结 3 496
情话喂你
情话喂你 2021-01-16 07:04

I made a game using eclipse. I have a server program and a client program. The clients communicate with the server using sockets. If the client starts it sends its username

3条回答
  •  广开言路
    2021-01-16 07:15

    Keep the sensitive state in the server program and have the client request the current value. Then you control it at the server.

    If someone has valid credentials, then they are able to do whatever your protocol permits the user to do within their context. This is something you must control from the server program to prevent unintended operations by the client from impacting on overall integrity.

提交回复
热议问题