t.n.d.Name : class documentation

Part of twisted.names.dns View Source View In Hierarchy

Implements interfaces: twisted.names.dns.IEncodable

No class docstring
Method __init__ Undocumented
Method encode Encode this Name into the appropriate byte format.
Method decode Decode a byte string into this Name.
Method __eq__ Undocumented
Method __hash__ Undocumented
Method __str__ Undocumented
def __init__(self, name=''): (source)
Undocumented
def encode(self, strio, compDict=None): (source)
Encode this Name into the appropriate byte format.
ParametersstrioThe byte representation of this Name will be written to this file. (type: file)
compDictdictionary of Names that have already been encoded and whose addresses may be backreferenced by this Name (for the purpose of reducing the message size). (type: dict)
def decode(self, strio, length=None): (source)
Decode a byte string into this Name.
ParametersstrioBytes will be read from this file until the full Name is decoded. (type: file)
RaisesEOFErrorRaised when there are not enough bytes available from strio.
ValueErrorRaised when the name cannot be decoded (for example, because it contains a loop).
def __eq__(self, other): (source)
Undocumented
def __hash__(self): (source)
Undocumented
def __str__(self): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2012-06-04 17:20:01.