Пример #1
0
 /// <summary>
 /// Implementation Reference RFC 2782
 /// </summary>
 /// <param name="buffer"></param>
  public SrvRecord(DataBuffer buffer)
 {
     priority = buffer.ReadShortInt();
     weight = buffer.ReadShortUInt();
     port = buffer.ReadShortUInt();
     domain = buffer.ReadDomainName();
 }
Пример #2
0
 /// <summary>
 /// Implementation Reference RFC 3403
 /// </summary>
 /// <param name="buffer"></param>
 public NaptrRecord(DataBuffer buffer)
 {
     order       = buffer.ReadShortUInt();
     priority    = buffer.ReadShortUInt();
     flags       = buffer.ReadCharString();
     services    = buffer.ReadCharString();
     regexp      = buffer.ReadCharString();
     replacement = buffer.ReadCharString();
 }
Пример #3
0
 public TSigRecord(DataBuffer buffer)
 {
     algorithm  = buffer.ReadDomainName();
     timeSigned = buffer.ReadLongInt();
     fudge      = buffer.ReadShortUInt();
     macSize    = buffer.ReadShortUInt();
     mac        = buffer.ReadBytes(macSize);
     originalId = buffer.ReadShortUInt();
     error      = buffer.ReadShortUInt();
     otherLen   = buffer.ReadShortUInt();
     otherData  = buffer.ReadBytes(otherLen);
 }
Пример #4
0
 /// <summary>
 /// Implementation References RFC 2930
 /// </summary>
 /// <param name="buffer"></param>
 public TKeyRecord(DataBuffer buffer)
 {
     algorithm  = buffer.ReadDomainName();
     inception  = buffer.ReadUInt();
     expiration = buffer.ReadUInt();
     mode       = buffer.ReadShortUInt();
     error      = buffer.ReadShortUInt();
     keySize    = buffer.ReadShortUInt();
     keyData    = buffer.ReadBytes(keySize);
     otherSize  = buffer.ReadShortUInt();
     otherData  = buffer.ReadBytes(otherSize);
 }