U
    ‰ª/e¯  ã                   @   s    d dl Z d dlmZ dd„ ZdS )é    N)ÚPollerc                 C   sl   t ƒ }|dkr|}| |tj¡ | |tj¡ t| ¡ ƒ}||krP| | ¡ ¡ ||kr.| | ¡ ¡ q.dS )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.
    éÿÿÿÿN)r   ÚregisterÚzmqÚPOLLINÚdictÚpollZsend_multipartZrecv_multipart)Zdevice_typeZisocketZosocketÚpÚevents© r   ú4/tmp/pip-unpacked-wheel-n6k67ybg/zmq/green/device.pyÚdevice   s    r   )r   Z	zmq.greenr   r   r   r   r   r   Ú<module>   s   