| Server IP : 217.160.0.135 / Your IP : 216.73.216.73 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/zmq/devices/__pycache__/ |
Upload File : |
�
mc�c� � � � d Z ddlmZ ddlmZ ddlmZmZmZm Z G d� de� � Z
G d� de
e� � Z G d � d
e
e � � Z G d� de
e� � Z
g d
�ZdS )z%MonitoredQueue classes and functions.� )�PUB)�monitored_queue)�ProcessProxy�Proxy� ProxyBase�ThreadProxyc �. � e Zd ZdZdZdZeddfd�Zd� ZdS )�MonitoredQueueBasez"Base class for overriding methods.� s ins outc �R � t j | |||�� � || _ || _ d S )N)�in_type�out_type�mon_type)r �__init__�
_in_prefix�_out_prefix)�selfr
r r � in_prefix�
out_prefixs �B/usr/lib/python3/dist-packages/zmq/devices/monitoredqueuedevice.pyr zMonitoredQueueBase.__init__ s3 � � ��4��8�h�W�W�W�W�#���%����r c �p � | � � � \ }}}t |||| j | j � � d S )N)�_setup_socketsr r r )r �ins�outs�monss r �
run_devicezMonitoredQueueBase.run_device s: � ��-�-�/�/���T�4���T�4���$�:J�K�K�K�K�Kr N) �__name__�
__module__�__qualname__�__doc__r r r r r � r r r
r
sU � � � � � �,�,��J��K� +.��6�&� &� &� &�L� L� L� L� Lr r
c � � e Zd ZdZdS )�MonitoredQueueaU Class for running monitored_queue in the background.
See zmq.devices.Device for most of the spec. MonitoredQueue differs from Proxy,
only in that it adds a ``prefix`` to messages sent on the monitor socket,
with a different prefix for each direction.
MQ also supports ROUTER on both sides, which zmq.proxy does not.
If a message arrives on `in_sock`, it will be prefixed with `in_prefix` on the monitor socket.
If it arrives on out_sock, it will be prefixed with `out_prefix`.
A PUB socket is the most logical choice for the mon_socket, but it is not required.
N�r r r r r! r r r# r# s � � � � � �� � � r r# c � � e Zd ZdZdS )�ThreadMonitoredQueuezcRun zmq.monitored_queue in a background thread.
See MonitoredQueue and Proxy for details.
Nr$ r! r r r&