Ok, so here I am again… months and months on this.
If you have a Server that listens for connections from a client and a client connects saying they wish to host a game, the server will launch a game on the server. Now how do you make it so that the client can communicate directly with the game, not through the server and make it so the game can communicate directly with the client, again not through the server?
Do you pass the server socket to the game and use a different port? Then tell the client what new port to use to talk to the game? I really dont think this method would be correct.
I really dont want the clients that are connected to games to have to send messages to the server, then have the server send the message to the game and vice versa.
Any suggestions would be greatly appreciated!