Package DNS :: Module rdataclass
[show private | hide private]
[frames | no frames]

Module DNS.rdataclass

DNS Rdata Classes.
Exceptions
UnknownRdataclass Raised when a class is unknown.

Function Summary
int from_text(text)
Convert text into a DNS rdata class value.
bool is_metaclass(rdclass)
True if the class is a metaclass.
string to_text(value)
Convert a DNS rdata class to text.

Variable Summary
int ANY
int CH
int HS
int IN
dict metaclasses - If an rdataclass is a metaclass, there will be a mapping whose key is the rdatatype value and whose value is True in this dictionary.
int NONE
int RESERVED0

Function Details

from_text(text)

Convert text into a DNS rdata class value.
Returns:
int

is_metaclass(rdclass)

True if the class is a metaclass.
Returns:
bool

to_text(value)

Convert a DNS rdata class to text.
Returns:
string

Variable Details

ANY

Type:
int
Value:
255                                                                    

CH

Type:
int
Value:
3                                                                      

HS

Type:
int
Value:
4                                                                      

IN

Type:
int
Value:
1                                                                      

metaclasses

If an rdataclass is a metaclass, there will be a mapping whose key is the rdatatype value and whose value is True in this dictionary.
Type:
dict
Value:
{254: True, 255: True}                                                 

NONE

Type:
int
Value:
254                                                                    

RESERVED0

Type:
int
Value:
0                                                                      

Generated by Epydoc 1.1 on Tue Jun 17 03:55:11 2003 http://epydoc.sf.net