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

Class _WireReader

object --+
         |
        _WireReader


Wire format reader.
Method Summary
  __init__(self, wire, message, question_only)
a new object with type S, a subtype of T __new__(S, ...)
  read(self)
Read a wire format DNS message and build a dns.message.Message object.
  _get_question(self, qcount)
Read the next qcountrecords from the wire data and add them to the question section.
  _get_section(self, section, count)
Read the next countrecords from the wire data and add them to the specified section.

Instance Variable Summary
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 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.

Method Details

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

read(self)

Read a wire format DNS message and build a dns.message.Message object.

_get_question(self, qcount)

Read the next qcount records from the wire data and add them to the question section.
Parameters:
qcount - the number of questions in the message
           (type=int)

_get_section(self, section, count)

Read the next count records from the wire data and add them to the specified section.
Parameters:
section - the section of the message to which to add records
           (type=list of dns.rrset.RRset objects)
count - the number of records to read
           (type=int)

Instance Variable Details

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.
Type:
int

message

The message object being built
Type:
dns.message.Message object

updating

Is the message a dynamic update?
Type:
bool

wire

the wire-format message.
Type:
string

zone_rdclass

The class of the zone in messages which are DNS dynamic updates.
Type:
int

Generated by Epydoc 1.1 on Sat Aug 7 11:32:47 2004 http://epydoc.sf.net