Is this a dualplayer game only? Or how do you want to use with n panels if n players connect to your server? If you have 3 players connected to your server, all players would try to update the same variable display_ration_output, which is not what you need.
ANet does not eliminate this design problem of your code, only YOU can do this.