void OnRecvPack(byte[] pack) { if (!IsConnected) { TcpLogger.LogError("Socket not connected, recvied pack will be drop."); return; } pack = TcpTools.Decode(pack, m_AesDecryptor, ref m_RecvIdx);//解压缩,解加密 m_RecvQueue.Enqueue(pack); }
void PushPack(byte[] pack) { pack = TcpTools.Decode(pack, m_AesDecryptor, ref m_RecvIdx);//解压缩,解加密 m_RecvQueue.Enqueue(pack); }