|
-
May 19th, 2009, 02:52 PM
#1
Thread Starter
Hyperactive Member
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!
Thanks for helping me out.
-
May 19th, 2009, 04:43 PM
#2
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?
-
May 19th, 2009, 05:51 PM
#3
Thread Starter
Hyperactive Member
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
Thanks for helping me out.
-
May 19th, 2009, 06:18 PM
#4
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).
-
May 20th, 2009, 02:28 AM
#5
Thread Starter
Hyperactive Member
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). "
Thanks for helping me out.
-
May 20th, 2009, 03:44 AM
#6
Re: Winsock Array...
When program starts there is a form that is loaded first and also likely the last to be closed.
-
May 21st, 2009, 07:16 PM
#7
Thread Starter
Hyperactive Member
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?
Thanks for helping me out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|