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

Module dns.rcode

DNS Result Codes.
Exceptions
UnknownRcode Raised if an rcode is unknown.

Function Summary
int from_flags(flags, ednsflags)
Return the rcode value encoded by flags and ednsflags.
int from_text(text)
Convert text into an rcode.
(int, int) tuple to_flags(value)
Return a (flags, ednsflags) tuple which encodes the rcode.
string to_text(value)
Convert rcode into text.

Function Details

from_flags(flags, ednsflags)

Return the rcode value encoded by flags and ednsflags.
Parameters:
flags - the DNS flags
           (type=int)
ednsflags - the EDNS flags
           (type=int)
Returns:
int
Raises:
ValueError - rcode is < 0 or > 4095

from_text(text)

Convert text into an rcode.
Parameters:
text - the texual rcode
           (type=string)
Returns:
int
Raises:
UnknownRcode - the rcode is unknown

to_flags(value)

Return a (flags, ednsflags) tuple which encodes the rcode.
Parameters:
value - the rcode
           (type=int)
Returns:
(int, int) tuple
Raises:
ValueError - rcode is < 0 or > 4095

to_text(value)

Convert rcode into text.
Parameters:
value - the rcode
           (type=int)
Returns:
string

Generated by Epydoc 2.1 on Sun Nov 25 17:43:04 2007 http://epydoc.sf.net