Introduction - If you have any usage issues, please Google them yourself
1V1 is implemented, and 1V is easy. However, relative to the 1V1 program, I have undergone a big change, using the chain list to dynamically manage. This efficiency has really improved a lot, at least the CPU use rate is stable below 20, and will not go to 100. It will take a lot of time to write this in C language, because what function functions should be written by oneself, unlike C++, which can be used by STL library, and MFC writing is simpler. Next, I will update MFC version of multi person chat program. Well, talk less and get into the subject.
The problems to be solved in this program are as follows:
1.CPU usage surge problem - > dynamic management with chain list
2., user defined chat is just to chat with anyone. - > add a ChatName field to _Client structure to show who to chat with. This field is very important, because server forwarding the message is based on this field.