o
    ¹i¯  ã                   @   s    d dl Z d dlmZ dd„ ZdS )é    N)Ú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ÚpollÚsend_multipartÚrecv_multipart)Údevice_typeÚisocketÚosocketÚpÚevents© r   úK/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/zmq/green/device.pyÚdevice   s   ûr   )r   Ú	zmq.greenr   r   r   r   r   r   Ú<module>   s   