Exemple #1
0
        internal override void ReadData(ref DnsParser.DnsParseContext context, int length)
        {
            int original = context.BytesConsumed;

            ZoneName        = context.ReadDomainName();
            MailBoxName     = context.ReadDomainName();
            VersionNumber   = context.ReadUInt32();
            RefreshInterval = context.ReadInt32();
            RetryInterval   = context.ReadInt32();
            Expires         = context.ReadInt32();
            MinimumTTL      = context.ReadUInt32();
            if (context.BytesConsumed - original != length)
            {
                throw new InvalidOperationException("RR data length overrun.");
            }
        }
Exemple #2
0
        internal override void ReadData(ref DnsParser.DnsParseContext context, int length)
        {
            int original = context.BytesConsumed;

            TargetDomainName = context.ReadDomainName();
            if (context.BytesConsumed - original != length)
            {
                throw new InvalidOperationException("RR data length overrun.");
            }
        }
Exemple #3
0
        internal override void ReadData(ref DnsParser.DnsParseContext context, int length)
        {
            int original = context.BytesConsumed;

            PreferenceOrder      = context.ReadInt16();
            MailServerDomainName = context.ReadDomainName();
            if (context.BytesConsumed - original != length)
            {
                throw new InvalidOperationException("RR data length overrun.");
            }
        }