maybe this belongs in the windows programming forum...not sure
suppose i have one server program and 3 client programs. the server program will communicate with the client program, but there isn't only 1 client connected. right now as it's coded, it seems as though it can only handle 1 client at a time. do i get it to handle multiple connections via multithreading of the winsock connection? im not using MFC, its pure API.
the data has to be routed to the appropriate client, but im not sure of how it will be done. maybe an array of WSADATA[n] with n being the maximum # of client connections, and whenever an incoming connection is detected, move 'route' it to the next available slot? or maybe a struct/linked list with WSADATA's in them with an int ID and the winsock in it...i don't know, throwing out ideas
One solution is a map of clients.
i'm not quite sure of what you mean by that.