twisted.names.dns.Name class documentationtwisted.names.dns
(View In Hierarchy)
Implements interfaces: twisted.names.dns.IEncodable
A name in the domain name system, made up of multiple labels. For example, twistedmatrix.com.
| Instance Variable | name | A byte string giving the name. (type: bytes) | 
| Method | __init__ | |
| Method | encode | Encode this Name into the appropriate byte format. | 
| Method | decode | Decode a byte string into this Name. | 
| Method | __eq__ | Undocumented | 
| Method | __ne__ | Undocumented | 
| Method | __hash__ | Undocumented | 
| Method | __str__ | Represent this Nameinstance by its 
string name. | 
Encode this Name into the appropriate byte format.
| Parameters | strio | The byte representation of this Name will be written to this file. (type: file) | 
| compDict | dictionary 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) | 
Decode a byte string into this Name.
| Parameters | strio | Bytes will be read from this file until the full Name is decoded. (type: file) | 
| Raises | EOFError | Raised when there are not enough bytes available from strio. | 
| ValueError | Raised when the name cannot be decoded (for example, because it contains a loop). |