I would like to do the simple card game which can many people play at the same time, but not only one game, there can ne n games running.
Recently I was learning how to do server-client coding, using TcpListener and TcpClient network services. But the main difference between the past project and the project which I would like to do it, that the past one had ONLY ONE server. In the next one there will be more then just one server to make it work.
So when someone would like to start a new game, the new server thread has to create (and as many new client thread as many people will join to this server). But I am not sure how to explain this well, all I want is how users can start their own "new servers thread". And there servers threads have to come out of one code.
Simple example is a party poker game.
Can anyone point me to the right direction how and where to start, if it s a good idea of using tcpListener, and tcpClient network services, OR there is something else better for such project?
I would really appreaciate it for a fair and decent answer.