-
Winsock Array...
Hi guys...
I have an idea and i dont know how to implement it
I have 15 forms, every form has 3 winsock controls that each does POST, GET, POST commands
one after the other ...
What i want to do is to make that in an array....
So like :
1. POST data - on close - GET another data - on close - POST another data
...
...
15.
Can it be done somehow with winsock array?
Cheers!
-
Re: Winsock Array...
Is there only one connection active at one time? In the best case you could have just one Winsock control, or two. One way to go would be to have a hidden form with a Winsock control that all the other forms would use. I guess not all of the 15 forms are active at the same time? Are the forms similar in other ways than just having three Winsock controls each?
-
Re: Winsock Array...
they are exactly the same....
all winsocks are the same, with different data to send only...
the connection starts simultaneously on all 15 winsocks...
That's what is bothering me...i thought if i make it in an array i would not be able to connect and send data simulataneously but only one by one
hmmm
-
Re: Winsock Array...
Nope, each control in the array would be independent of each other, meaning it would be just like you would be using individual controls. In the array you just have to work with an Index.
In this case you could have all the Winsock code in just one form (one that is always in use and the one that is closed last and opened first).
-
Re: Winsock Array...
hmmm i dont understand the last part where you say... "(one that is always in use and the one that is closed last and opened first). "
-
Re: Winsock Array...
When program starts there is a form that is loaded first and also likely the last to be closed.
-
Re: Winsock Array...
ups i dont understand :S
can u give me an example on how to setup the connect and data arrival for winsock array?