Multiple Connections with one winsock! and a bit n00bie help!
Hey,
I have madea winsock code which when connects it performs an action.. now wat i want it to do is.. once the action is done to close the winsock connection!
hw do i do that?
and there is somethin called multiple winsock connections or somethin like dat? cud any1 tell wat it is?
thx
Re: Multiple Connections with one winsock! and a bit n00bie help!
I haven't used Winsock in a while, but
...should do it.
Multiple connections are made by using a control array. If you right click a Winsock control, copy it, then paste it, VB will ask if you want to create a control array. These work the same way as normal arrays, but they are of objects. IE:
VB Code:
Winsock(0).Close
Winsock(1).Close
Try downloading a Chat Program (source code) for an example of this.
Phreak
Re: Multiple Connections with one winsock! and a bit n00bie help!
Take a look at the Networking forum. There also are examples in the CodeBank.
Re: Multiple Connections with one winsock! and a bit n00bie help!
ok! i neeed some more help in packet sniffing is there any1 good at it ?
i wud like to meet some1 in a chat on msn messenger or somethin! the project im tryin to work on cud only be explained face2face so its not possible here... cud any1 add me to their msn?
[email protected] <thats my msn pls add me
Re: Multiple Connections with one winsock! and a bit n00bie help!
You want a UDP connection or TCP connection?