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