/// <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(); }
/// <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(); }
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); }
/// <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); }