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

Type _WireReader

object --+
         |
        _WireReader


Wire format reader.
Method Summary
  __init__(self, wire, message, question_only)
  _get_question(self, qcount)
Read the next qcount records from the wire data and add them to the question section.
  _get_section(self, section, count)
Read the next count records from the wire data and add them to the specified section.
  read(self)
Read a wire format DNS message and build a dns.message.Message object.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

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

_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)

read(self)

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

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 2.1 on Sun Jul 31 21:35:41 2005 http://epydoc.sf.net