新建From1(窗体),新建Command1(按钮CommandButton),Winsock1(Winsock)代码:
运行结果:
这样就可以在一个_DataArrival中清空全部Winsock的缓存了。
还有一个例子:
证明了: