Beispiel #1
0
        public IDataPacketHeader CreateDataPacketHeader()
        {
            DataPacketHeader dph = new DataPacketHeader();

            dph.MagicKey = NMagicKey;
            dph.Version  = NVersion;
            return(dph);
        }
Beispiel #2
0
        public bool IsValidHeader(IDataPacketHeader header)
        {
            DataPacketHeader dph = (DataPacketHeader)header;

            return(dph.MagicKey == NMagicKey && dph.Version == NVersion);
        }