Exemple #1
0
        internal override void ParseRecordData(byte[] resultData, int currentPosition, int length)
        {
            int endPosition = currentPosition + length;

            IsdnAddress = DnsMessageBase.ParseText(resultData, ref currentPosition);
            SubAddress  = (currentPosition < endPosition) ? DnsMessageBase.ParseText(resultData, ref currentPosition) : String.Empty;
        }
Exemple #2
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     Order       = DnsMessageBase.ParseUShort(resultData, ref startPosition);
     Preference  = DnsMessageBase.ParseUShort(resultData, ref startPosition);
     Flags       = DnsMessageBase.ParseText(resultData, ref startPosition);
     Services    = DnsMessageBase.ParseText(resultData, ref startPosition);
     RegExp      = DnsMessageBase.ParseText(resultData, ref startPosition);
     Replacement = DnsMessageBase.ParseDomainName(resultData, ref startPosition);
 }
Exemple #3
0
        internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
        {
            int endPosition = startPosition + length;

            TextData = String.Empty;
            while (startPosition < endPosition)
            {
                TextData += DnsMessageBase.ParseText(resultData, ref startPosition);
            }
        }
Exemple #4
0
        internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
        {
            int endPosition = startPosition + length;

            List <string> textParts = new List <string>();

            while (startPosition < endPosition)
            {
                textParts.Add(DnsMessageBase.ParseText(resultData, ref startPosition));
            }

            TextParts = textParts;
            TextData  = String.Join(String.Empty, textParts.ToArray());
        }
Exemple #5
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     Cpu             = DnsMessageBase.ParseText(resultData, ref startPosition);
     OperatingSystem = DnsMessageBase.ParseText(resultData, ref startPosition);
 }
Exemple #6
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     X25Address += DnsMessageBase.ParseText(resultData, ref startPosition);
 }
Exemple #7
0
 internal override void ParseRecordData(byte[] resultData, int currentPosition, int length)
 {
     Longitude = Double.Parse(DnsMessageBase.ParseText(resultData, ref currentPosition), CultureInfo.InvariantCulture);
     Latitude  = Double.Parse(DnsMessageBase.ParseText(resultData, ref currentPosition), CultureInfo.InvariantCulture);
     Altitude  = Double.Parse(DnsMessageBase.ParseText(resultData, ref currentPosition), CultureInfo.InvariantCulture);
 }
Exemple #8
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     Flags = resultData[startPosition++];
     Tag   = DnsMessageBase.ParseText(resultData, ref startPosition);
     Value = DnsMessageBase.ParseText(resultData, ref startPosition, length - (2 + Tag.Length));
 }