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

            _data.WriteTo(s, domainEntries);
        }
예제 #3
0
 protected override void WriteRecordData(Stream s, List <DnsDomainOffset> domainEntries)
 {
     DnsDatagram.SerializeDomainName(_masterNameServer, s, domainEntries);
     DnsDatagram.SerializeDomainName(_responsiblePerson, s, domainEntries);
     DnsDatagram.WriteUInt32NetworkOrder(_serial, s);
     DnsDatagram.WriteUInt32NetworkOrder(_refresh, s);
     DnsDatagram.WriteUInt32NetworkOrder(_retry, s);
     DnsDatagram.WriteUInt32NetworkOrder(_expire, s);
     DnsDatagram.WriteUInt32NetworkOrder(_minimum, s);
 }
예제 #4
0
 public void WriteTo(Stream s, List <DnsDomainOffset> domainEntries)
 {
     if (_minimizedName == null)
     {
         DnsDatagram.SerializeDomainName(_name, s, domainEntries);
         DnsDatagram.WriteUInt16NetworkOrder((ushort)_type, s);
         DnsDatagram.WriteUInt16NetworkOrder((ushort)_class, s);
     }
     else
     {
         DnsDatagram.SerializeDomainName(_minimizedName, s, domainEntries);
         DnsDatagram.WriteUInt16NetworkOrder((ushort)MinimizedType, s);
         DnsDatagram.WriteUInt16NetworkOrder((ushort)_class, s);
     }
 }
예제 #5
0
 protected override void WriteRecordData(Stream s, List <DnsDomainOffset> domainEntries)
 {
     DnsDatagram.SerializeDomainName(_ptrDomainName, s, domainEntries);
 }
예제 #6
0
 protected override void WriteRecordData(Stream s, List <DnsDomainOffset> domainEntries)
 {
     DnsDatagram.WriteUInt16NetworkOrder(_preference, s);
     DnsDatagram.SerializeDomainName(_exchange, s, domainEntries);
 }