HEX
Server: LiteSpeed
System: Linux srv146.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: kodi1989 (1633)
PHP: 8.1.34
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/dns/__pycache__/opcode.cpython-37.pyc
B

��f�
�@s�dZddlZddlZGdd�dejj�ZGdd�dejj�Z	e
ed�dd	�Zeed
�dd�Z
eed
�dd�Zee
d
�dd�Zeed
�dd�ZejZejZejZejZejZdS)zDNS Opcodes.�Nc@s8eZdZdZdZdZdZdZedd��Z	edd	��Z
d
S)�Opcoder����cCsdS)N��)�clsrr�;/opt/alt/python37/lib/python3.7/site-packages/dns/opcode.py�_maximum$szOpcode._maximumcCstS)N)�
UnknownOpcode)r	rrr
�_unknown_exception_class(szOpcode._unknown_exception_classN)�__name__�
__module__�__qualname__�QUERY�IQUERY�STATUS�NOTIFY�UPDATE�classmethodrr
rrrr
rsrc@seZdZdZdS)rzAn DNS opcode is unknown.N)rrr�__doc__rrrr
r-sr)�text�returncCs
t�|�S)z�Convert text into an opcode.

    *text*, a ``str``, the textual opcode

    Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown.

    Returns an ``int``.
    )r�	from_text)rrrr
r1s
r)�flagsrcCst|d@d?�S)zpExtract an opcode from DNS message flags.

    *flags*, an ``int``, the DNS flags.

    Returns an ``int``.
    ix�)r)rrrr
�
from_flags>sr)�valuercCs|d>d@S)z�Convert an opcode to a value suitable for ORing into DNS message
    flags.

    *value*, an ``int``, the DNS opcode value.

    Returns an ``int``.
    rixr)rrrr
�to_flagsIs	rcCs
t�|�S)z�Convert an opcode to text.

    *value*, an ``int`` the opcode value,

    Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown.

    Returns a ``str``.
    )r�to_text)rrrr
r Us
r cCst|�tjkS)zmIs the opcode in flags UPDATE?

    *flags*, an ``int``, the DNS message flags.

    Returns a ``bool``.
    )rrr)rrrr
�	is_updatebsr!)rZdns.enumZdnsZ
dns.exception�enum�IntEnumr�	exceptionZDNSExceptionr�strr�intrrr �boolr!rrrrrrrrr
�<module>s