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); }
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(); }
public Question(RecordReader rr) { this.QName = rr.ReadDomainName(); this.QType = (QTYPE)rr.ReadUInt16(); this.QClass = (QCLASS)rr.ReadUInt16(); }