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