class _OPTVariableOption(tputil.FancyStrMixin, tputil.FancyEqMixin): (source)
Implements interfaces: twisted.names.dns.IEncodable
| 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__ |
|
| Method | decode |
Decode bytes into an _OPTVariableOption instance. |
| Method | encode |
Encode this _OPTVariableOption to bytes. |
| Class Variable | compareAttributes |
Undocumented |
| Class Variable | showAttributes |
Undocumented |
| Instance Variable | code |
Undocumented |
| Instance Variable | data |
Undocumented |
| Class Variable | _fmt |
Undocumented |
Inherited from FancyStrMixin:
| Method | __str__ |
Undocumented |
Inherited from FancyEqMixin:
| Method | __eq__ |
Undocumented |
| Method | __ne__ |
Undocumented |
_OPTVariableOption instance.| Parameters | |
| strio:file | Bytes will be read from this file until the full _OPTVariableOption is decoded. |
length:int or None | Not used. |
_OPTVariableOption to bytes.| Parameters | |
| strio:file | the byte representation of this _OPTVariableOption will be written to this file. |
compDict:dict or None | A dictionary of backreference addresses that have already been written to this stream and that may be used for DNS name compression. |