Exemple #1
0
 public void Enqueue(ClientPacket packet)
 {
     GameLog.DebugFormat("Enqueueing ClientPacket {0}", packet.Opcode);
     ClientState.ReceiveBufferAdd(packet);
     if (!packet.ShouldEncrypt || (packet.ShouldEncrypt && EncryptionKey != null))
     {
         FlushReceiveBuffer();
     }
 }
Exemple #2
0
 public void Enqueue(ClientPacket packet)
 {
     GameLog.DebugFormat("Enqueueing ClientPacket {0}", packet.Opcode);
     if (!Connected)
     {
         Disconnect();
         throw new ObjectDisposedException($"cid {ConnectionId}");
     }
     else
     {
         ClientState.ReceiveBufferAdd(packet);
         if (!packet.ShouldEncrypt || (packet.ShouldEncrypt && EncryptionKey != null))
         {
             FlushReceiveBuffer();
         }
     }
 }
Exemple #3
0
 public void Enqueue(ClientPacket packet)
 {
     Logger.DebugFormat("Enqueueing ClientPacket {0}", packet.Opcode);
     ClientState.ReceiveBufferAdd(packet);
     FlushReceiveBuffer();
 }