File: //usr/lib64/python3.6/site-packages/zmq/auth/__pycache__/ioloop.cpython-36.pyc
3
VS�_R � @ sB d Z ddlmZ ddlmZ ddlmZ G dd� de�ZdgZdS ) zNZAP Authenticator integrated with the tornado IOLoop.
.. versionadded:: 14.1
� )�ioloop)� zmqstream� )�
Authenticatorc s: e Zd ZdZd
� fdd� Z� fdd�Z� fdd �Z� ZS )�IOLoopAuthenticatorz0ZAP authentication for use in the tornado IOLoopN�utf-8c s. t t| �j|||� d | _|p&tjj� | _d S )N)�superr �__init__�
zap_streamr ZIOLoopZcurrent�io_loop)�self�context�encoding�logr )� __class__� �/usr/lib64/python3.6/ioloop.pyr s zIOLoopAuthenticator.__init__c s2 t t| �j� tj| j| j�| _| jj| j � dS )zStart ZAP authenticationN)
r r �startr Z ZMQStreamZ
zap_socketr r
Zon_recvZhandle_zap_message)r )r r r r s zIOLoopAuthenticator.startc s( | j r| j j� d| _ tt| �j� dS )zStop ZAP authenticationN)r
�closer r �stop)r )r r r r s
zIOLoopAuthenticator.stop)Nr NN)�__name__�
__module__�__qualname__�__doc__r r r �
__classcell__r r )r r r s r N) r Ztornador Z
zmq.eventloopr �baser r �__all__r r r r �<module> s