Hello, i have a few question about socket in c++! First question, let's say that he writes a server for the game in which he will play 200 people at once, but accept is blocked because he already serves one client, how to deal with it? Second question, how to download a list of all currently connected clients, so that you can then send a package to everyone?
In general your server will have a "listener" on whatever main port you choose and when an incoming connection occurs, this listener will spawn a new client-handler socket for each new client. A quick google turned up this: http://www.mycplus.com/source-code/c-source-code/tcp-client-and-server/