Private sub sckserver_connectionrequest(index as Integer,Byval
requestid as long) if sckserver.count=1 then load
sckserver(1) sckserver(1).accept requestId end if end
sub
Private sub sckserver_connectrequest(Index as Integer,Byval
requestid as long) dim sip as string dim I as
integer sip=sckserver(0).RemoteHostIP '获得登录者的IP地址 I=1 Do while
I<=sckserver.ubound '检查是否已经有该地址的记录 If sckserver(I).RemoteHostIP=sip
then '如有,不必加载新的控件 Sckserver(I).Accept requestid Exit sub End
if I=I+1 Loop Load sckserver(I) '否则,加载新的控件 Scksrver(I).accept
requestID End
sub