#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; vector clients; int listen_sock; void close_descriptors() { //Close the listening socket close(listen_sock); //Close sockets for all the clients for (int i=0; i maxfd) maxfd = new_socket; } //Loop through all the clients to see if they have sent a message. for (int i=0; i