Newbie, or if there is a level below......
Trying to create a Client Server app, simply the server should count connected clients once, the total is ==5 tell all clients a message, end the connection gracefully and clear the count and the vector that held the names, awaiting 5 more clients to connect.
From examples on the web etc i have my client that works well,
The server thread is my issue, My idea is to read in the name given from the client and put it in the vector and increase the count, but i can't seem to get the logic correct.
Would be greatfull if anyone can advise if the idea (as attached) is correct, after which i can work on the error.