Exemple #1
0
 ///<summary>
 ///</summary>
 ///<param name="rr"></param>
 public RR(RecordReader rr)
 {
     TimeLived = 0;
     Name      = rr.ReadDomainName();
     Type      = (Type)rr.ReadUInt16();
     Class     = (Class)rr.ReadUInt16();
     TTL       = rr.ReadUInt32();
     RDLENGTH  = rr.ReadUInt16();
     Record    = rr.ReadRecord(Type);
     Record.RR = this;
 }
Exemple #2
0
 ///<summary>
 ///</summary>
 ///<param name="rr"></param>
 public Header(RecordReader rr)
 {
     ID      = rr.ReadUInt16();
     _flags  = rr.ReadUInt16();
     QDCOUNT = rr.ReadUInt16();
     ANCOUNT = rr.ReadUInt16();
     NSCOUNT = rr.ReadUInt16();
     ARCOUNT = rr.ReadUInt16();
 }
Exemple #3
0
 ///<summary>
 ///</summary>
 ///<param name="rr"></param>
 public Header(RecordReader rr)
 {
     ID = rr.ReadUInt16();
     _flags = rr.ReadUInt16();
     QDCOUNT = rr.ReadUInt16();
     ANCOUNT = rr.ReadUInt16();
     NSCOUNT = rr.ReadUInt16();
     ARCOUNT = rr.ReadUInt16();
 }
Exemple #4
0
 ///<summary>
 ///</summary>
 ///<param name="rr"></param>
 public Question(RecordReader rr)
 {
     QName  = rr.ReadDomainName();
     QType  = (QType)rr.ReadUInt16();
     QClass = (QClass)rr.ReadUInt16();
 }
Exemple #5
0
 ///<summary>
 ///</summary>
 ///<param name="rr"></param>
 public Question(RecordReader rr)
 {
     QName = rr.ReadDomainName();
     QType = (QType) rr.ReadUInt16();
     QClass = (QClass) rr.ReadUInt16();
 }
Exemple #6
0
 ///<summary>
 ///</summary>
 ///<param name="rr"></param>
 public RR(RecordReader rr)
 {
     TimeLived = 0;
     Name = rr.ReadDomainName();
     Type = (Type) rr.ReadUInt16();
     Class = (Class) rr.ReadUInt16();
     TTL = rr.ReadUInt32();
     RDLENGTH = rr.ReadUInt16();
     Record = rr.ReadRecord(Type);
     Record.RR = this;
 }