服务器给客户端发消息问题
vb吧
全部回复
仅看楼主
吧务
level 13
VBzhuyongxing
楼主
服务器给客户端发消息。比如3个客户端只有一个能收到。winsock写的
2016年06月04日 05点06分
1
level 10
水墨点苍😳
用winsock 数组+for 循环。
for i =1 to n
if winsock(i).state=7 then winsock(i).senddata xxxx
next i
大概是这样,纯手打
2016年06月04日 07点06分
2
水墨点苍😳
也许循环中加个 doevents 会好一点。反正如果 信息发生粘连 就用 doevents 绝对没错
2016年06月04日 07点06分
VBzhuyongxing
@水墨点苍😳
谢谢。我看一下效果
2016年06月04日 07点06分
1