예제 #1
0
 public RR(RecordReader rr)
 {
     this.NAME     = rr.ReadDomainName();
     this.TYPE     = (TYPE)rr.ReadUInt16();
     this.CLASS    = (CLASS)rr.ReadUInt16();
     this.TTL      = rr.ReadUInt32();
     this.RDLENGTH = rr.ReadUInt16();
     //begin to read a RDATA
     this.RECORD = rr.ReadRecord(TYPE, RDLENGTH);
 }
예제 #2
0
 public Header(RecordReader rr)
 {
     this.ID      = rr.ReadUInt16();
     this.Flags   = rr.ReadUInt16();
     this.QDCOUNT = rr.ReadUInt16();
     this.ANCOUNT = rr.ReadUInt16();
     this.NSCOUNT = rr.ReadUInt16();
     this.ARCOUNT = rr.ReadUInt16();
 }
예제 #3
0
파일: Question.cs 프로젝트: queueit/Dns
 public Question(RecordReader rr)
 {
     this.QName  = rr.ReadDomainName();
     this.QType  = (QTYPE)rr.ReadUInt16();
     this.QClass = (QCLASS)rr.ReadUInt16();
 }