o
    ªZhÒ  ã                   @  s,   d dl mZ d dlZd dlmZ dd„ ZdS )é    )ÚannotationsN)ÚPollerc                 C  sj   t ƒ }|dkr	|}| |tj¡ | |tj¡ 	 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ÚpollZsend_multipartZrecv_multipart)Zdevice_typeZisocketZosocketÚpÚevents© r   úG/var/www/html/lang_env/lib/python3.10/site-packages/zmq/green/device.pyÚdevice	   s   ûr   )Ú
__future__r   r   Z	zmq.greenr   r   r   r   r   r   Ú<module>   s   