private void OnReceive(AegisClient ac, StreamBuffer buffer) { SecurePacket packet = new SecurePacket(buffer); packet.Decrypt(AESIV, AESKey); packet.SkipHeader(); if (PacketPreprocessing != null && PacketPreprocessing(packet) == false) { _callbackQueue.AddPacket(packet); } }
public Response(SecurePacket packet) { Packet = packet; Packet.SkipHeader(); ResultCodeNo = packet.GetInt32(); }