Ejemplo n.º 1
0
 protected override void WriteRecordData(Stream s, List <DnsDomainOffset> domainEntries)
 {
     DnsDatagram.WriteUInt16NetworkOrder(_priority, s);
     DnsDatagram.WriteUInt16NetworkOrder(_weight, s);
     DnsDatagram.WriteUInt16NetworkOrder(_port, s);
     DnsDatagram.ConvertDomainToLabel(_target, s, null); //no compression for domain name as per RFC
 }
        public void WriteTo(Stream s, List <DnsDomainOffset> domainEntries)
        {
            DnsDatagram.ConvertDomainToLabel(_name, s, domainEntries);
            DnsDatagram.WriteUInt16NetworkOrder((ushort)_type, s);
            DnsDatagram.WriteUInt16NetworkOrder((ushort)_class, s);
            DnsDatagram.WriteUInt32NetworkOrder(TTLValue, s);

            _data.WriteTo(s, domainEntries);
        }
Ejemplo n.º 3
0
 protected override void WriteRecordData(Stream s, List <DnsDomainOffset> domainEntries)
 {
     DnsDatagram.ConvertDomainToLabel(_masterNameServer, s, domainEntries);
     DnsDatagram.ConvertDomainToLabel(_responsiblePerson, s, domainEntries);
     DnsDatagram.WriteUInt32NetworkOrder(_serial, s);
     DnsDatagram.WriteUInt32NetworkOrder(_refresh, s);
     DnsDatagram.WriteUInt32NetworkOrder(_retry, s);
     DnsDatagram.WriteUInt32NetworkOrder(_expire, s);
     DnsDatagram.WriteUInt32NetworkOrder(_minimum, s);
 }
Ejemplo n.º 4
0
 protected override void WriteRecordData(Stream s, List <DnsDomainOffset> domainEntries)
 {
     DnsDatagram.ConvertDomainToLabel(_nsDomainName, s, domainEntries);
 }
Ejemplo n.º 5
0
 protected override void WriteRecordData(Stream s, List <DnsDomainOffset> domainEntries)
 {
     DnsDatagram.WriteUInt16NetworkOrder(_preference, s);
     DnsDatagram.ConvertDomainToLabel(_exchange, s, domainEntries);
 }