Home | Trees | Index | Help |
|
---|
Package DNS :: Module rdata |
|
Classes | |
---|---|
GenericRdata |
Generate Rdata Class |
Rdata |
Base class for all DNS rdata types. |
Exceptions | |
---|---|
MeaninglessComparison |
Raised if an attemped is made to compare one rdata type with another. |
Function Summary | |
---|---|
DNS.rdata.Rdata instance |
Build an rdata object from text format. |
DNS.rdata.Rdata instance |
Build an rdata object from wire format |
get_rdata_class(rdclass,
rdtype)
| |
_hexify(data)
|
Variable Summary | |
---|---|
int | _hex_chunk
- At most this many octets that will be represented in each chunk of
hexstring that _hexify() produces before whitespace occurs. |
string | _module_prefix
- The prefix to use when forming modules names. |
dict | _rdata_modules
- A dictionary mapping a (rdclass, rdtype) tuple to the module which
implements that type. |
Function Details |
---|
from_text(rdclass, rdtype, tok, origin=None)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.
|
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.
|
Variable Details |
---|
_hex_chunkAt most this many octets that will be represented in each chunk of hexstring that _hexify() produces before whitespace occurs.
|
_module_prefixThe prefix to use when forming modules names. The default is 'DNS.rdtypes'. Changing this value will break the library.
|
_rdata_modulesA dictionary mapping a (rdclass, rdtype) tuple to the module which implements that type.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 1.1 on Tue Jun 17 03:55:14 2003 | http://epydoc.sf.net |