/* * for(;;){ * recvfrom(skt, buffer, 1024, 0, &rec_addr, addrsize); * if(it's from somebody we know, such as a message to relay){ * for(each client in our list of address) * send out the message to that client * } * if(it's from somebody new, and it's a login message with a username) * add that person to the list of people we know * }