Gekitotsu
Jan 3rd, 2001, 05:07 PM
When using the Winsock Control in VB6.. I have this problem..
If I use a socket array.. Say Socket(1) socket(2) etc.. and I try to use something like a for next loop to send to all the connections..
Example:
For Q = 1 to 5
Socket(Q).SendData "Whatever" & Vblf
next
It doesn't send to any but the last one (Socket(5)) .. However if after I do that .. And try sending something else to the single socket.. Lets say 3..
Socket(3).SendData "Stuff" & VbLf
Then It sends "Whatever" & Vblf & "Stuff" & VbLf
I need it to send when its "Supposed" to... Not wait till it is called seperatly..
Is there some kind of character.. Or command to make each send..
Any help would be appreciated.
If I use a socket array.. Say Socket(1) socket(2) etc.. and I try to use something like a for next loop to send to all the connections..
Example:
For Q = 1 to 5
Socket(Q).SendData "Whatever" & Vblf
next
It doesn't send to any but the last one (Socket(5)) .. However if after I do that .. And try sending something else to the single socket.. Lets say 3..
Socket(3).SendData "Stuff" & VbLf
Then It sends "Whatever" & Vblf & "Stuff" & VbLf
I need it to send when its "Supposed" to... Not wait till it is called seperatly..
Is there some kind of character.. Or command to make each send..
Any help would be appreciated.