By upgrading the logic to a single user, you can enter multiple halls at the same time (originally only one hall can be entered), but you can only play one game.
This forces me to significantly modify the code, especially the entity.
So far, it has been improved, but there are many small bugs to solve.
Therefore, messages are displayed on the server, including
Changes in the key memory objects of the receiving protocol, the time point of the sending protocol, and the sending/receiving objects.
Open the console program while starting the client, and output the above information.
So far, login has been stable, and the communication layer has been stable.
Illegal disconnection detection is stable, but the processing on the client needs to be improved.
You also need to write story.
Two bugs have been solved:
1) Leave Hall is abnormal because the hallid in my userhalllist is 0.
2) throw an exception "You cannot call invoke or begininvoke on the control before creating the window handle". This problem has plagued me for a long time. I just found a solution: in this. add a waiting code before invoke:
While (! This. ishandlecreated)
{
;
}