Home | Trees | Index | Help |
|
---|
Package dns :: Module rdata |
|
Classes | |
---|---|
GenericRdata |
Generate Rdata Class |
Rdata |
Base class for all DNS rdata types. |
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)
| |
string |
Convert a binary string into its base64 encoding, broken up into chunks of chunksizecharacters separated by a space. |
string |
Escape the characters in a quoted string which need it. |
string |
Convert a binary string into its hex encoding, broken up into chunks of chunksizecharacters separated by a space. |
string |
Determine the index of greatest byte that isn't all zeros, and return the bitmap that contains all the bytes less than that index. |
Variable Summary | |
---|---|
dict |
__escaped
|
int |
_base64_chunksize
|
int | _hex_chunk
- At most this many octets that will be represented in each chunk of
hexstring that _hexify() produces before whitespace occurs. |
int |
_hex_chunksize
|
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, 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.
|
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.
|
_base64ify(data, chunksize=None)Convert a binary string into its base64 encoding, broken up into chunks of chunksize characters separated by a space.
|
_escapify(qstring)Escape the characters in a quoted string which need it.
|
_hexify(data, chunksize=None)Convert a binary string into its hex encoding, broken up into chunks of chunksize characters separated by a space.
|
_truncate_bitmap(what)Determine the index of greatest byte that isn't all zeros, and return the bitmap that contains all the bytes less than that index.
|
Variable Details |
---|
__escaped
|
_base64_chunksize
|
_hex_chunkAt most this many octets that will be represented in each chunk of hexstring that _hexify() produces before whitespace occurs.
|
_hex_chunksize
|
_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 Sun Jun 6 13:48:48 2004 | http://epydoc.sf.net |