Exemple #1
0
 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);
 }
Exemple #2
0
 void PushPack(byte[] pack)
 {
     pack = TcpTools.Decode(pack, m_AesDecryptor, ref m_RecvIdx);//解压缩,解加密
     m_RecvQueue.Enqueue(pack);
 }