dns :: rdata :: GenericRdata :: Class GenericRdata
[hide private]
[frames] | no frames]

Class GenericRdata

source code

object --+    
         |    
     Rdata --+
             |
            GenericRdata

Generic Rdata Class

This class is used for rdata types for which we have no better implementation. It implements the DNS "unknown RRs" scheme.

Instance Methods [hide private]
 
__init__(self, rdclass, rdtype, data)
Initialize an rdata.
source code
 
to_text(self, origin=None, relativize=True, **kw)
Convert an rdata to text format.
source code
 
to_wire(self, file, compress=None, origin=None)
Convert an rdata to wire format.
source code

Inherited from Rdata: __eq__, __ge__, __gt__, __hash__, __le__, __lt__, __ne__, __repr__, __str__, choose_relativity, covers, extended_rdatatype, to_digestable, validate

Inherited from Rdata (private): _cmp

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]
 
from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True) source code
 
from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None) source code
Properties [hide private]
  data

Inherited from Rdata: rdclass, rdtype

Inherited from object: __class__

Method Details [hide private]

__init__(self, rdclass, rdtype, data)
(Constructor)

source code 

Initialize an rdata.

*rdclass*, an ``int`` is the rdataclass of the Rdata. *rdtype*, an ``int`` is the rdatatype of the Rdata.

Overrides: object.__init__
(inherited documentation)

to_text(self, origin=None, relativize=True, **kw)

source code 

Convert an rdata to text format.

Returns a ``text``.

Overrides: Rdata.to_text
(inherited documentation)

from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True)
Class Method

source code 
Overrides: Rdata.from_text

to_wire(self, file, compress=None, origin=None)

source code 

Convert an rdata to wire format.

Returns a ``binary``.

Overrides: Rdata.to_wire
(inherited documentation)

from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None)
Class Method

source code 
Overrides: Rdata.from_wire