Package dpkt :: Module dns :: Class DNS :: Class Q
[hide private]
[frames] | no frames]

Class Q

source code

 object --+    
          |    
dpkt.Packet --+
              |
             DNS.Q
Known Subclasses:

DNS question.

Nested Classes [hide private]

Inherited from dpkt.Packet: __metaclass__

Instance Methods [hide private]
 
__len__(self)
str(x)
source code
 
__str__(self)
str(x)
source code
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code

Inherited from dpkt.Packet: __getitem__, __init__, __repr__, pack, pack_hdr

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __hdr__ = (('name', '1025s', ''), ('type', 'H', 1), ('cls', 'H...
  __hdr_defaults__ = {'cls': 1, 'name': '', 'type': 1}
  __hdr_fields__ = ['name', 'type', 'cls']
  __hdr_fmt__ = '>1025sHH'
  __hdr_len__ = 1029
Properties [hide private]
  cls
  data
  name
  type

Inherited from object: __class__

Method Details [hide private]

__len__(self)
(Length operator)

source code 
str(x)

Overrides: dpkt.Packet.__len__

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)

unpack(self, buf)

source code 
Unpack packet header fields from buf, and set self.data.

Overrides: dpkt.Packet.unpack
(inherited documentation)

Class Variable Details [hide private]

__hdr__

Value:
(('name', '1025s', ''), ('type', 'H', 1), ('cls', 'H', 1))