Hi guys, i've been searching the forum for some info but i did not find what i needed...
What i need to do is :
- send 4 different strings to 4 different ip's (hosts)
- read the data recieved from all the 4 hosts i've sent the data before
So far i have done this :
CONNECT BUTTON :
Hosts(0) = "192.168.1.1"
Hosts(0) = "192.168.1.2"
Hosts(0) = "192.168.1.3
For i = 0 To 2
Winsock1(i).Close
Winsock1(i).Connect Hosts(i), 80
DataToSend(i)= Hosts(i)
next i
WINSOCK CONNECT :
For i = 0 To 2
If Winsock1(i).State = 7 Then Winsock1(i).SendData LOGIN_DATA_SEND(i)
Next i
this code kinda works, winsock connects but sending the first packet in a bad way making multiple lines in DataTosend...but that s not the main problem
Now the problem i have is how to get the DATA ARRIVAL in the approriate arrays.
Like this :
for i=0 to 2
DataRetrieved(i) =
next i
Cheers




Reply With Quote