コード例 #1
0
ファイル: EosCoreClient.cs プロジェクト: sojournercntl/Eos
        /// <summary>
        /// ReactorClient packet receiver
        /// </summary>
        /// <param name="data"></param>
        public virtual void ReceiverOnReceivedPacketEvent(byte[] data)
        {
            byte[]    d = Encryption.AES_Decrypt(data, Key, Salt);
            EosPacket p = new EosPacket(d);

            if (p.Type == EosPacketType.Message)
            {
                HandlePushMessage(p);
            }
            else if (p.Type == EosPacketType.Shutdown)
            {
                HandleServerShutdown();
            }
        }