From: deepak a. <dee...@gm...> - 2011-02-01 16:58:59
|
>At least for me, I would just like to be able to support more than one >network game at a time from a single machine, eventually. Most likely >this will be a single server program that can handle multiple >simultaneous games. Whether or not it involves a separate thread for >each game is not essential, likewise we may or may not open a separate >port for each game. I guess running multiple instances of the same >program on the same machine is another possibility, if we work out a >way to assign all the ports correctly. > David I am trying to implement exactly this thing :- What i am trying to do is that first client connect to permanent/master port then the server will send the new port number to client where a particular game is hosting by server. I find out a way so that multiple ports can be initialized easily work correctly. There is lot of work to done yet i.e reading code throughly and understanding it. Please send me email address so that i can send files to you. Is there anyone who can send me short outline of how server is implemented so that i can avoid unnecessary things and able to understand things more correctly. |