Home > Back-end >  Windows network programming multiple client connection problems
Windows network programming multiple client connection problems

Time:10-05

First open a thread is waiting for the client connection, and then opened the n threads signal processing, found that when the client connection number n surplus, the client should connect to the server, but to the server sends the message, the server can't receive the message, ask ace to reassure thank you!

CodePudding user response:

From you in several parts of suspicious place you should go to the validation
First of all, the client should be connected to the server, if there really is connected, it automatically send a message to the server, is sent when the connection is successful, and IP or casual words
Second, the server has a socket set how many clients can be connected at the same time, if there is any change
  • Related