public void SendMessages() { List <Message> sendQueue = SendQueue.RetrieveMessages(); foreach (IPEndPoint clientEndpoint in Clients.Keys) { List <Message> messages = new List <Message>(); messages.AddRange(Clients[clientEndpoint].SendQueue.RetrieveMessages()); messages.AddRange(sendQueue); SendToEndpoint(messages, clientEndpoint); } }