As a winsock control array connecting 2000 clients
Time:11-09
This several days to see some of the winsock posts, the brain to produce a thought: if a server using winsock control array connection 2000 clients (TCP connection), when the service side want to 2000 when the client sends a string "www.vbgood.com"
For I=1 to 2000 WskServer (I). SendData publishes the event "www.vbgood.com" Next I
This is too slow, and may result in a concurrent send failure, experts have a good idea? Thank you very much
CodePudding user response:
Sent 2000 messages will be done in a very short period of time, but to maintain normal 2000 connected to this task, is not a simple vb a few lines of code will be able to resist, this is the very high concurrency,