davecarr2000
09-07-2001, 02:50 PM
Can somebody look at this code and tell where im going wrong.
If find that the first client to connect can send data, but doesn't receive it. The second client can send and receive.
newSck is an index control for the winsock.
For y = 1 To newSck
If sckServer(y).State = sckConnected Then
sckServer(y).GetData strData
If strData <> "" Then
For x = 1 To newSck
If sckServer(x).State = sckConnected Then
sckServer(x).SendData strData
End If
Next x
End If
End If
Next y
If find that the first client to connect can send data, but doesn't receive it. The second client can send and receive.
newSck is an index control for the winsock.
For y = 1 To newSck
If sckServer(y).State = sckConnected Then
sckServer(y).GetData strData
If strData <> "" Then
For x = 1 To newSck
If sckServer(x).State = sckConnected Then
sckServer(x).SendData strData
End If
Next x
End If
End If
Next y