예제 #1
0
 private void LoopSending()
 {
     while (clientSocket != null && clientSocket.IsConnect())
     {
         lock (sendMsgPool)
         {
             while (sendMsgPool.Count > 0)
             {
                 NetMsg msg = sendMsgPool.Dequeue();
                 clientSocket.AsynSend(msg.GetNetBytes());
             }
         }
         Thread.Sleep(100);
     }
 }