Results 1 to 5 of 5

Thread: Multiple Connections with one winsock! and a bit n00bie help!

  1. #1

    Thread Starter
    Addicted Member prophecy's Avatar
    Join Date
    Mar 2005
    Location
    In the developers list of Visual Basic ;-)
    Posts
    242

    Unhappy 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
    Got You! - ©
    - My Signature.
    Visit www.compzone.hhnf.com. If you think i helped you, add to my reputation by Clicking "Rate This Post".

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Multiple Connections with one winsock! and a bit n00bie help!

    I haven't used Winsock in a while, but
    VB Code:
    1. Winsock.Close
    ...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:
    1. Winsock(0).Close
    2. Winsock(1).Close
    Try downloading a Chat Program (source code) for an example of this.

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  4. #4

    Thread Starter
    Addicted Member prophecy's Avatar
    Join Date
    Mar 2005
    Location
    In the developers list of Visual Basic ;-)
    Posts
    242

    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
    Got You! - ©
    - My Signature.
    Visit www.compzone.hhnf.com. If you think i helped you, add to my reputation by Clicking "Rate This Post".

  5. #5
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Multiple Connections with one winsock! and a bit n00bie help!

    You want a UDP connection or TCP connection?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width