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

Module dns.opcode

DNS Opcodes.
Exceptions
UnknownOpcode Raised if an opcode is unknown.

Function Summary
int from_flags(flags)
Extract an opcode from DNS message flags.
int from_text(text)
Convert text into an opcode.
bool is_update(flags)
True if the opcode in flags is UPDATE.
int to_flags(value)
Convert an opcode to a value suitable for ORing into DNS message flags.
string to_text(value)
Convert an opcode to text.

Function Details

from_flags(flags)

Extract an opcode from DNS message flags.
Parameters:
flags - int
Returns:
int

from_text(text)

Convert text into an opcode.
Parameters:
text - the textual opcode
           (type=string)
Returns:
int
Raises:
UnknownOpcode - the opcode is unknown

is_update(flags)

True if the opcode in flags is UPDATE.
Parameters:
flags - DNS flags
           (type=int)
Returns:
bool

to_flags(value)

Convert an opcode to a value suitable for ORing into DNS message flags.
Returns:
int

to_text(value)

Convert an opcode to text.
Parameters:
value - the opcdoe
           (type=int)
Returns:
string
Raises:
UnknownOpcode - the opcode is unknown

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