예제 #1
0
 private void SendPacketThread()
 {
     while (sendPackets.Count != 0)
     {
         LsServerPacket lsServerPacket = sendPackets.Dequeue();
         try
         {
             lsServerPacket.write(this);
         }
         catch (Exception ex)
         {
             ProjectData.SetProjectError(ex);
             Exception ex2 = ex;
             log.Error((object)ex2);
             ProjectData.ClearProjectError();
         }
         base.SendPacket(lsServerPacket);
     }
     IsWrite = false;
 }
예제 #2
0
 protected void SendPacket(LsServerPacket packet)
 {
     base.Client.SendPacket(packet);
 }
예제 #3
0
 internal void Close(LsServerPacket packet)
 {
     sendPackets.Clear();
     sendPackets.Enqueue(packet);
     Disconnect();
 }