internal override DnsResourceData CreateInstance(DnsDatagram dns, int offsetInDns, int length)
        {
            ushort        preference;
            DnsDomainName domainName;

            if (!DnsResourceDataUShortDomainName.TryRead(out preference, out domainName, dns, offsetInDns, length))
            {
                return((DnsResourceData)null);
            }
            return((DnsResourceData) new DnsResourceDataKeyExchanger(preference, domainName));
        }
Exemple #2
0
        internal override DnsResourceData CreateInstance(DnsDatagram dns, int offsetInDns, int length)
        {
            ushort        num;
            DnsDomainName domainName;

            if (!DnsResourceDataUShortDomainName.TryRead(out num, out domainName, dns, offsetInDns, length))
            {
                return((DnsResourceData)null);
            }
            return((DnsResourceData) new DnsResourceDataAfsDatabase((DnsAfsDatabaseSubtype)num, domainName));
        }