File: //opt/saltstack/salt/lib/python3.10/site-packages/zmq/green/__pycache__/device.cpython-310.pyc
o
�N�g� � @ s d dl Z d dlmZ dd� ZdS )� N)�Pollerc C sj t � }|dkr |}|�|tj� |�|tj� t|�� �}||v r)|�|�� � ||v r4|�|�� � q)a� Start a zeromq device (gevent-compatible).
Unlike the true zmq.device, this does not release the GIL.
Parameters
----------
device_type : (QUEUE, FORWARDER, STREAMER)
The type of device to start (ignored).
isocket : Socket
The Socket instance for the incoming traffic.
osocket : Socket
The Socket instance for the outbound traffic.
���)r �register�zmq�POLLIN�dict�pollZsend_multipartZrecv_multipart)Zdevice_typeZisocketZosocket�p�events� r �D/opt/saltstack/salt/lib/python3.10/site-packages/zmq/green/device.py�device s �r
)r Z zmq.greenr r
r r r r �<module> s