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

Class RRHeader


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

Instance Variable Summary
  cls - The query class of the original request.
  name - The name about which this reply contains information.
  payload - An object that implements the IEncodable interface
  ttl - The time-to-live for this record.
  type - The query type of the original request.

Class Variable Summary
tuple __implements__
None cachedResponse
None cls
string fmt - strspecifying the byte format of an RR.
None name
None payload
None rdlength
None ttl
None type

Method Details

__init__(self, name='', type=1, cls=1, ttl=0, payload=None)
(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

cls

The query class of the original request.

name

The name about which this reply contains information.

payload

An object that implements the IEncodable interface

ttl

The time-to-live for this record.

type

The query type of the original request.

Class Variable Details

__implements__

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

cachedResponse

Type:
None
Value:
None                                                                   

cls

Type:
None
Value:
None                                                                   

fmt

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

name

Type:
None
Value:
None                                                                   

payload

Type:
None
Value:
None                                                                   

rdlength

Type:
None
Value:
None                                                                   

ttl

Type:
None
Value:
None                                                                   

type

Type:
None
Value:
None                                                                   

Generated by Epydoc 1.1 on Sat Feb 15 21:17:57 2003 http://epydoc.sf.net