403Webshell
Server IP : 198.38.94.13  /  Your IP : 216.73.217.33
Web Server : Apache
System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : revivere ( 1140)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/saltstack/salt/lib/python3.10/site-packages/zmq/sugar/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/saltstack/salt/lib/python3.10/site-packages/zmq/sugar/__pycache__/frame.cpython-310.pyc
o

;j��@sNdZddlZddlmZddlmZdd�ZGdd	�d	ee�ZeZd	d
gZ	dS)z0MQ Frame pure Python methods.�N)�Frame�)�AttributeSettercCs&tj�||�tjstd|����dS)Nz6libzmq and pyzmq must be built with draft support for )�zmq�errorZ_check_versionZ	DRAFT_API�RuntimeError)�vZfeature�r	�C/opt/saltstack/salt/lib/python3.10/site-packages/zmq/sugar/frame.py�_drafts��rc@sTeZdZdZdd�Zdd�Zedd��Zejdd��Zed	d
��Z	e	jdd
��Z	dS)
rau
    A zmq message Frame class for non-copying send/recvs and access to message properties.

    A ``zmq.Frame`` wraps an underlying ``zmq_msg_t``.

    Message *properties* can be accessed by treating a Frame like a dictionary (``frame["User-Id"]``).

    .. versionadded:: 14.4, libzmq 4

        Frames created by ``recv(copy=False)`` can be used to access message properties and attributes,
        such as the CURVE User-Id.

        For example::

            frames = socket.recv_multipart(copy=False)
            user_id = frames[0]["User-Id"]

    This class is used if you want to do non-copying send and recvs.
    When you pass a chunk of bytes to this class, e.g. ``Frame(buf)``, the
    ref-count of `buf` is increased by two: once because the Frame saves `buf` as
    an instance attribute and another because a ZMQ message is created that
    points to the buffer of `buf`. This second ref-count increase makes sure
    that `buf` lives until all messages that use it have been sent.
    Once 0MQ sends all the messages and it doesn't need the buffer of ``buf``,
    0MQ will call ``Py_DECREF(s)``.

    Parameters
    ----------

    data : object, optional
        any object that provides the buffer interface will be used to
        construct the 0MQ message data.
    track : bool
        whether a MessageTracker_ should be created to track this object.
        Tracking a message has a cost at creation, because it creates a threadsafe
        Event object.
    copy : bool
        default: use copy_threshold
        Whether to create a copy of the data to pass to libzmq
        or share the memory with libzmq.
        If unspecified, copy_threshold is used.
    copy_threshold: int
        default: :const:`zmq.COPY_THRESHOLD`
        If copy is unspecified, messages smaller than this many bytes
        will be copied and messages larger than this will be shared with libzmq.
    cCs
|�|�S)N)�get)�self�keyr	r	r
�__getitem__Ds
zFrame.__getitem__cCs�t|�}d}|dkrCtt|j�dd��}|dkr d}|d}n|dkr+d}|d	}n|d
kr6d}|d
}nd}|}d
|d�|��}n|j}|jj}|dkrPd}d|�d|jj�d|�|�d�S)z#Return the str form of the message.��N�ge��AZGBiZMBg��.Ag@�@ZkB�Bz...z.0fzzmq.sugar.framer�<�.�(z)>)�len�bytes�
memoryview�buffer�	__class__�
__module__�__name__)r
�nbytesZ
msg_suffixZ	msg_bytesZunit�n�_moduler	r	r
�__repr__Hs*


 zFrame.__repr__cC�tdd�|�d�S)z�The RADIO-DISH group of the message.

        Requires libzmq >= 4.2 and pyzmq built with draft APIs enabled.

        .. versionadded:: 17
        ����
RADIO-DISH�group�rr�r
r	r	r
r'c�

zFrame.groupcC�tdd�|�d|�dS)Nr#r&r'�r�set)r
r'r	r	r
r'n�
cCr")z�The CLIENT-SERVER routing id of the message.

        Requires libzmq >= 4.2 and pyzmq built with draft APIs enabled.

        .. versionadded:: 17
        r#�
CLIENT-SERVER�
routing_idr(r)r	r	r
r0sr*zFrame.routing_idcCr+)Nr#r/r0r,)r
r0r	r	r
r0~r.N)
rr�__qualname__�__doc__rr!�propertyr'�setterr0r	r	r	r
rs/




r�Message)
r2rZzmq.backendrZ	FrameBaseZ	attrsettrrrr5�__all__r	r	r	r
�<module>sq

Youez - 2016 - github.com/yon3zu
LinuXploit