Package twisted :: Package protocols :: Module dns :: Class RRHeader
[frames | no frames]

Class RRHeader


A resource record header.
Method Summary
  __init__(self, name, type, cls, ttl, payload, auth)
  __repr__(self)
  __str__(self)
  decode(self, strio, length)
  encode(self, strio, compDict)
  isAuthoritative(self)

Instance Variable Summary
  auth: Whether this header is authoritative or not.
NoneType cls: The query class of the original request.
NoneType name: The name about which this reply contains information.
NoneType payload: An object that implements the IEncodable interface
NoneType ttl: The time-to-live for this record.
NoneType type: The query type of the original request.

Class Variable Summary
tuple __implements__ = (<class twisted.protocols.dns.IEncodabl...
NoneType cachedResponse = None                                                                  
str fmt: str specifying the byte format of an RR.
NoneType rdlength = None                                                                  

Method Details

__init__(self, name='', type=1, cls=1, ttl=0, payload=None, auth=0)
(Constructor)

Parameters:
name - The name about which this reply contains information.
           (type=str)
type - The query type.
           (type=int)
cls - The query class.
           (type=int)
ttl - Time to live for this record.
           (type=int)
payload - A Query Type specific data object.
           (type=An object implementing IEncodable)

Instance Variable Details

auth

Whether this header is authoritative or not.

cls

The query class of the original request.
Type:
NoneType
Value:
None                                                                  

name

The name about which this reply contains information.
Type:
NoneType
Value:
None                                                                  

payload

An object that implements the IEncodable interface
Type:
NoneType
Value:
None                                                                  

ttl

The time-to-live for this record.
Type:
NoneType
Value:
None                                                                  

type

The query type of the original request.
Type:
NoneType
Value:
None                                                                  

Class Variable Details

__implements__

Type:
tuple
Value:
(<class twisted.protocols.dns.IEncodable at 0x87c13fc>,)               

cachedResponse

Type:
NoneType
Value:
None                                                                  

fmt

str specifying the byte format of an RR.
Type:
str
Value:
'!HHIH'                                                                

rdlength

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.0 on Sat Sep 13 04:21:15 2003 http://epydoc.sf.net