Exemplo n.º 1
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     Preference = DnsMessageBase.ParseUShort(resultData, ref startPosition);
     Locator32  = DnsMessageBase.ParseUInt(resultData, ref startPosition);
 }
Exemplo n.º 2
0
 protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     DnsMessageBase.EncodeUShort(messageData, ref currentPosition, Preference);
     DnsMessageBase.EncodeUInt(messageData, ref currentPosition, Locator32);
 }
Exemplo n.º 3
0
 protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, Longitude.ToString(CultureInfo.InvariantCulture));
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, Latitude.ToString(CultureInfo.InvariantCulture));
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, Altitude.ToString(CultureInfo.InvariantCulture));
 }
Exemplo n.º 4
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     X25Address += DnsMessageBase.ParseText(resultData, ref startPosition);
 }
Exemplo n.º 5
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));
 }
Exemplo n.º 6
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     RecordData = DnsMessageBase.ParseByteData(resultData, ref startPosition, length);
 }
Exemplo n.º 7
0
 internal override void EncodeData(byte[] messageData, ref int currentPosition)
 {
     DnsMessageBase.EncodeInt(messageData, ref currentPosition, (int)LeaseTime.TotalSeconds);
 }
Exemplo n.º 8
0
 protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, IsdnAddress);
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, SubAddress);
 }
Exemplo n.º 9
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     Cpu             = DnsMessageBase.ParseText(resultData, ref startPosition);
     OperatingSystem = DnsMessageBase.ParseText(resultData, ref startPosition);
 }
Exemplo n.º 10
0
 internal override void ParseData(byte[] resultData, int startPosition, int length)
 {
     LeaseTime = TimeSpan.FromSeconds(DnsMessageBase.ParseInt(resultData, ref startPosition));
 }
Exemplo n.º 11
0
 protected override void EncodePublicKey(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     DnsMessageBase.EncodeByteArray(messageData, ref currentPosition, PublicKey);
 }
Exemplo n.º 12
0
 protected override void ParsePublicKey(byte[] resultData, int startPosition, int length)
 {
     PublicKey = DnsMessageBase.ParseByteData(resultData, ref startPosition, length);
 }
Exemplo n.º 13
0
 internal void Encode(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames, bool useCompressionMutation)
 {
     DnsMessageBase.EncodeDomainName(messageData, offset, ref currentPosition, Name, true, useCompressionMutation, domainNames);
     DnsMessageBase.EncodeUShort(messageData, ref currentPosition, (ushort)RecordType);
     DnsMessageBase.EncodeUShort(messageData, ref currentPosition, (ushort)RecordClass);
 }
Exemplo n.º 14
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     NameServer = DnsMessageBase.ParseDomainName(resultData, ref startPosition);
 }
Exemplo n.º 15
0
 internal void EncodeRecordLength(byte[] messageData, int offset, ref int recordDataOffset, Dictionary <string, ushort> domainNames, int recordPosition)
 {
     DnsMessageBase.EncodeUShort(messageData, ref recordDataOffset, (ushort)(recordPosition - recordDataOffset - 2));
     recordDataOffset = recordPosition;
 }
Exemplo n.º 16
0
 protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     DnsMessageBase.EncodeDomainName(messageData, offset, ref currentPosition, NameServer, true, domainNames);
 }
Exemplo n.º 17
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     Preference       = DnsMessageBase.ParseUShort(resultData, ref startPosition);
     IntermediateHost = DnsMessageBase.ParseDomainName(resultData, ref startPosition);
 }
Exemplo n.º 18
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     Address = new IPAddress(DnsMessageBase.ParseByteData(resultData, ref startPosition, 4));
 }
Exemplo n.º 19
0
 protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     DnsMessageBase.EncodeUShort(messageData, ref currentPosition, (ushort)SubType);
     DnsMessageBase.EncodeDomainName(messageData, offset, ref currentPosition, Hostname, false, domainNames);
 }
Exemplo n.º 20
0
 protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     messageData[currentPosition++] = Flags;
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, Tag);
     DnsMessageBase.EncodeTextWithoutLength(messageData, ref currentPosition, Value);
 }
Exemplo n.º 21
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     SubType  = (AfsSubType)DnsMessageBase.ParseUShort(resultData, ref startPosition);
     Hostname = DnsMessageBase.ParseDomainName(resultData, ref startPosition);
 }
Exemplo n.º 22
0
 protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     DnsMessageBase.EncodeByteArray(messageData, ref currentPosition, RecordData);
 }
Exemplo n.º 23
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);
 }