예제 #1
0
파일: SOA.cs 프로젝트: boethin/dnstools
 internal override void ReadRDATA(Internal.ByteReader reader)
 {
     MNAME = reader.ReadDomain();
       RNAME = reader.ReadDomain();
       SERIAL = reader.ReadUint32();
       REFRESH = reader.ReadUint32();
       RETRY = reader.ReadUint32();
       EXPIRE = reader.ReadUint32();
       MINIMUM = reader.ReadUint32();
 }
예제 #2
0
파일: RRBase.cs 프로젝트: boethin/dnstools
        void Internal.IResponseReader.ReadResponse(Internal.ByteReader reader)
        {
            NAME = reader.ReadDomain();

              // TYPE may be not understood
              TypeValue = reader.ReadUIn16();
              if (Enum.IsDefined(typeof(QTYPE), TypeValue))
              {
            // known type
            TYPE = (QTYPE)TypeValue;
            TypeString = TYPE.ToString();
              }
              else
              {
            // unknown type
            TYPE = null;
            TypeString = String.Format("[{0}]", TypeValue.ToString());
              }
              CLASS = reader.ReadUIn16Enum<QCLASS>();
              TTL = reader.ReadUint32();
              RDLENGTH = reader.ReadUIn16();
        }