|
-
Mar 28th, 2007, 09:20 AM
#1
Thread Starter
New Member
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........................
-
Mar 28th, 2007, 12:04 PM
#2
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
-
Mar 28th, 2007, 09:47 PM
#3
Thread Starter
New Member
Re: help connecting multiple clients to a server at the same port
thanks dude good idea!!!!!
-
Mar 28th, 2007, 09:58 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|