新建From1(窗体),新建Command1-2(按钮CommandButton),WinSock1-2(Winsock)代码:
运行后发现:
ClientSocket_DataArrival正常,ClientSocket2_DataArrival马上出错。
结论:
用ClientSocket和ClientSocket2结果一样,都等价于Winsock2。