Exemplo n.º 1
0
 public QuestionRecord(string n, QTYPE t, RCLASS c)
 {
     if (n.Length > 256)
     {
         throw new MalformedRecord();
     }
     this.name   = n;
     this._type  = t;
     this._class = c;
 }
Exemplo n.º 2
0
 public ResourceRecord(string n, QTYPE t, RCLASS c, uint _ttl, byte[] _data)
 {
     this.question = new QuestionRecord(n, t, c);
     this.ttl      = _ttl;
     this.data     = _data;
 }
Exemplo n.º 3
0
 public QuestionRecord(byte[] bytes, ref ushort i)
 {
     this.name   = readLabel(bytes, ref i);
     this._type  = (QTYPE)GetLEUInt16(bytes, ref i);
     this._class = (RCLASS)GetLEUInt16(bytes, ref i);
 }