ivans-csu / super-cow-powers

Class project to learn socket programming by creating a networked game.
0 stars 0 forks source link

TODO: handle stream desync #13

Open babylfish opened 1 month ago

babylfish commented 1 month ago

messages are handled according to their type; type is determined by a leading byte. if a sender writes an unexpected number of bytes into the stream for a given message type, all subsequent messages cannot be handled; this is a cascading failure.

potentially related: #7

low priority because this is a class project. misbehaving clients would be more of a concern if it were not