class documentation
class _OPTVariableOption(tputil.FancyStrMixin, tputil.FancyEqMixin): (source)
Constructor: _OPTVariableOption(code, data)
Implements interfaces: twisted.names.dns.IEncodable
A class to represent OPT record variable options.
See Also | |
_OPTVariableOption.__init__ for documentation of public instance attributes. | |
https://tools.ietf.org/html/rfc6891#section-6.1.2 | |
Present Since | |
13.2 |
Method | __init__ |
No summary |
Method | decode |
Decode bytes into an _OPTVariableOption instance. |
Method | encode |
Encode this _OPTVariableOption to bytes. |
Class Variable | compare |
Undocumented |
Class Variable | show |
Undocumented |
Instance Variable | code |
Undocumented |
Instance Variable | data |
Undocumented |
Class Variable | _fmt |
Undocumented |
Inherited from FancyStrMixin
:
Method | __str__ |
Undocumented |
Inherited from FancyEqMixin
(via FancyStrMixin
):
Method | __eq__ |
Undocumented |
Method | __ne__ |
Undocumented |
Decode bytes into an _OPTVariableOption
instance.
Parameters | |
strio:file | Bytes will be read from this file until the full _OPTVariableOption is decoded. |
length:int or None | Not used. |
Encode this _OPTVariableOption
to bytes.
Parameters | |
strio:file | the byte representation of this _OPTVariableOption will be written to this file. |
compdict or None | A dictionary of backreference addresses that have already been written to this stream and that may be used for DNS name compression. |