a
    õ£Be¯  ã                   @   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| ¡ ƒ}||v rP| | ¡ ¡ ||v 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   úS/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/zmq/green/device.pyÚdevice   s    r   )r   Z	zmq.greenr   r   r   r   r   r   Ú<module>   s   