HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib64/python3.6/site-packages/zmq/utils/__pycache__/monitor.cpython-36.pyc
3

VS�_(�@s>dZddlZddlZddlmZdd�Zddd�ZddgZdS)	zJModule holding utility and convenience functions for zmq event monitoring.�N)�_check_versioncCs\t|�dkst|d�dkr(td|��tjd|d�dtjd|d�d|dd�}|S)a�decode zmq_monitor event messages.
    
    Parameters
    ----------
    msg : list(bytes)
        zmq multipart message that has arrived on a monitor PAIR socket.
        
        First frame is::
        
            16 bit event id
            32 bit event value
            no padding

        Second frame is the endpoint as a bytestring

    Returns
    -------
    event : dict
        event description as dict with the keys `event`, `value`, and `endpoint`.
    �r�z Invalid event message format: %sz=hi�)�event�valueZendpoint)�len�RuntimeError�struct�unpack)�msgr�r
�/usr/lib64/python3.6/monitor.py�parse_monitor_messagesrcCstdd�|j|�}t|�S)u�Receive and decode the given raw message from the monitoring socket and return a dict.

    Requires libzmq ≥ 4.0

    The returned dict will have the following entries:
      event     : int, the event id as described in libzmq.zmq_socket_monitor
      value     : int, the event value associated with the event, see libzmq.zmq_socket_monitor
      endpoint  : string, the affected endpoint
    
    Parameters
    ----------
    socket : zmq PAIR socket
        The PAIR socket (created by other.get_monitor_socket()) on which to recv the message
    flags : bitfield (int)
        standard zmq recv flags

    Returns
    -------
    event : dict
        event description as dict with the keys `event`, `value`, and `endpoint`.
    �rzlibzmq event API)rr)rZrecv_multipartr)Zsocket�flagsrr
r
r�recv_monitor_message(s

r)r)�__doc__r
ZzmqZ	zmq.errorrrr�__all__r
r
r
r�<module>s