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........................
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.
Re: help connecting multiple clients to a server at the same port
thanks dude good idea!!!!!
Re: help connecting multiple clients to a server at the same port
All it takes is an array of Winsock controls on the server.