CodePudding user response:
Need more, or you want to define the communication protocol to distinguish different sessionLook at the example below, the framework is basically what you want, communication logic oneself change
http://www.m5home.com/bak_blog/article/169.html
CodePudding user response:
In writing when the server program to add multiple Winsock control, at first we started to join the two Winsock control, one used to listen to online request signal, named Listener; Another for the initial connection, named the Sock (0), note that after a control to be set as the form of a dynamic array, when customers increased, after can be in the control on the basis of the dynamic increase,CodePudding user response:
I sell RMB 500 VB6 client and server WinSock communications example program source code,QQ: 511606848