Results 1 to 4 of 4

Thread: Winsock help

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Winsock help

    I have 2 winsock controls on my form winsock1 and winsock 2 and both at index 0.

    My server has 2 winsock controls again both set at index 0 and both set to listen, on form load, on different ports.

    Well i conect winsock1(0) to the server fine(on port 10000), but when i connect winsock2(0)(on port 20000), or try to, it closes both winsock1 and winsock2.

    I did this a while back with no problem i.e connecting more than one sock to a server. Whats likely the prob here?

  2. #2
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    When you get the connection request are you loading a new winsock and accepting the request with it?

  3. #3
    New Member nislm's Avatar
    Join Date
    Oct 2002
    Location
    Bangladesh
    Posts
    10
    u don't have to use two winsock controls on the server side. a single winsock control can listen to many clients at a time.

  4. #4
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    Do you have SP5
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

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