コード例 #1
0
        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);
            }
        }