Пример #1
0
 private void DoSending()
 {
     while (this.working)
     {
         AuthPacket ap = outAPQueue.Dequeue();
         if (ap != null)
         {
             int sentLength = clientSocket.Send(ap.GetPacketBuffer());
             if (sentLength < 1)
             {
                 MLogger.NetworkLogger.Error("Auth client socket sent 0 bytes : " + this.clientSocket.Handle);
                 this.StopSession();
             }
         }
         Thread.Sleep(10);
     }
 }