Package dns :: Module message :: Class _WireReader
[hide private]
[frames] | no frames]

Class _WireReader

source code

object --+
         |
        _WireReader

Wire format reader.

wire: a binary, is the wire-format message. message: The message object being built current: When building a message object from wire format, this variable contains the offset from the beginning of wire of the next octet to be read. updating: Is the message a dynamic update? one_rr_per_rrset: Put each RR into its own RRset? ignore_trailing: Ignore trailing junk at end of request? zone_rdclass: The class of the zone in messages which are DNS dynamic updates.

Instance Methods [hide private]
 
__init__(self, wire, message, question_only=False, one_rr_per_rrset=False, ignore_trailing=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_get_question(self, qcount)
Read the next *qcount* records from the wire data and add them to the question section.
source code
 
_get_section(self, section, count)
Read the next count records from the wire data and add them to the specified section.
source code
 
read(self)
Read a wire format DNS message and build a dns.message.Message object.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, wire, message, question_only=False, one_rr_per_rrset=False, ignore_trailing=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_get_section(self, section, count)

source code 

Read the next count records from the wire data and add them to the specified section.

section: the section of the message to which to add records count: the number of records to read