Adds a new thread to the server program that periodically sets a boolean instance variable to false. When this var is true, the main server thread resets it to false, and does some client monitoring activities (pinging clients in the client list, and removing clients who haven't been heard from in a while). The client program has been updated to reply with ack messages to pings from the server.
Adds more colors (now 12 instead of 5), and makes it so that the client will cycle through the colors again when there are more clients than colors (instead of having all subsequent clients use the terminal default color).
This pull request:
Adds a new thread to the server program that periodically sets a boolean instance variable to false. When this var is true, the main server thread resets it to false, and does some client monitoring activities (pinging clients in the client list, and removing clients who haven't been heard from in a while). The client program has been updated to reply with ack messages to pings from the server.
Adds more colors (now 12 instead of 5), and makes it so that the client will cycle through the colors again when there are more clients than colors (instead of having all subsequent clients use the terminal default color).