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.

Variable Summary
int IQUERY
int NOTIFY
int QUERY
int STATUS
int UPDATE

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.
Returns:
int

is_update(flags)

True if the opcode in flags is UPDATE.
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.
Returns:
string

Variable Details

IQUERY

Type:
int
Value:
1                                                                      

NOTIFY

Type:
int
Value:
4                                                                      

QUERY

Type:
int
Value:
0                                                                      

STATUS

Type:
int
Value:
2                                                                      

UPDATE

Type:
int
Value:
5                                                                      

Generated by Epydoc 1.1 on Thu Jun 5 22:37:31 2003 http://epydoc.sf.net