Package dns :: Module rdata
[show private | hide private]
[frames | no frames]

Module dns.rdata

DNS rdata.
Classes
GenericRdata Generate Rdata Class
Rdata Base class for all DNS rdata types.

Function Summary
dns.rdata.Rdata instance from_text(rdclass, rdtype, tok, origin, relativize)
Build an rdata object from text format.
dns.rdata.Rdata instance from_wire(rdclass, rdtype, wire, current, rdlen, origin)
Build an rdata object from wire format
  get_rdata_class(rdclass, rdtype)

Function Details

from_text(rdclass, rdtype, tok, origin=None, relativize=True)

Build an rdata object from text format.

This function attempts to dynamically load a class which implements the specified rdata class and type. If there is no class-and-type-specific implementation, the GenericRdata class is used.

Once a class is chosen, its from_text() class method is called with the parameters to this function.
Parameters:
rdclass - The rdata class
           (type=int)
rdtype - The rdata type
           (type=int)
tok - The tokenizer
           (type=dns.tokenizer.Tokenizer)
origin - The origin to use for relative names
           (type=dns.name.Name)
relativize - Should names be relativized?
           (type=bool)
Returns:
dns.rdata.Rdata instance

from_wire(rdclass, rdtype, wire, current, rdlen, origin=None)

Build an rdata object from wire format

This function attempts to dynamically load a class which implements the specified rdata class and type. If there is no class-and-type-specific implementation, the GenericRdata class is used.

Once a class is chosen, its from_wire() class method is called with the parameters to this function.
Parameters:
rdclass - The rdata class
           (type=int)
rdtype - The rdata type
           (type=int)
wire - The wire-format message
           (type=string)
current - The offet in wire of the beginning of the rdata.
           (type=int)
rdlen - The length of the wire-format rdata
           (type=int)
origin - The origin to use for relative names
           (type=dns.name.Name)
Returns:
dns.rdata.Rdata instance

Generated by Epydoc 1.1 on Mon Jun 30 15:54:08 2003 http://epydoc.sf.net