For a simple console chat in C++ with Winsock 2, how do I enable multiple connections on one server. I think I'd make a SOCKET array (SOCKET* Conections;), but is this even possible? And also, I want the server to display all activity within each client (nickname, message, etc.), and would like to have the server console window constantly updated so I can see everything at the same time like every client connected to the server.
My original plan is to check each attempting-to-connect client to see if it's compatible with he server, then if it is, connect to it and store the user's nick, IP, etc.