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

# Class _WireReader

source code

    object --+
             |
            _WireReader

Wire format reader.

Instance Methods | [hide private]
__init__(self, wire, message, question_only=False, one_rr_per_rrset=False) x.__init__(...) initializes x; see x.__class__.__doc__ 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__`

Instance Variables | [hide private]
int | 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.
dns.message.Message object | message The message object being built
bool | one_rr_per_rrset Put each RR into its own RRset?
bool | updating Is the message a dynamic update?
string | wire the wire-format message.
int | zone_rdclass The class of the zone in messages which are DNS dynamic updates.

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, wire, message, question_only=False, one_rr_per_rrset=False) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)

### _get_question(self, qcount) | source code
Read the next qcount records from the wire data and add them to the question section. Parameters: `qcount` (int) - the number of questions in the message

### _get_section(self, section, count) | source code
Read the next count records from the wire data and add them to the specified section. Parameters: `section` (list of dns.rrset.RRset objects) - the section of the message to which to add records `count` (int) - the number of records to read