Results 1 to 4 of 4

Thread: help connecting multiple clients to a server at the same port

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    4

    Exclamation help connecting multiple clients to a server at the same port

    though winsock i tried to connect many clients to a single server but it cannot accept more than one client at a time so please can u tell me how can i connect multiple clients to a server......... iam making a chat program for the lan computers please help needed very urgent........................

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: help connecting multiple clients to a server at the same port

    The server listens on Port X. When it gets a connect request on Port X, it creates a new Winsock control using Port X+(number of users currently connected+1), sends that number to the client and the client connects to that port number.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    4

    Re: help connecting multiple clients to a server at the same port

    thanks dude good idea!!!!!

  4. #4
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: help connecting multiple clients to a server at the same port

    All it takes is an array of Winsock controls on the server.

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