%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/netapi/rest_cherrypy/tools/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/netapi/rest_cherrypy/tools/websockets.pyo

�
���^c@@s�ddlmZmZmZy6ddlZddlmZmZddlm	Z	Wne
k
rh�nXe�ej_eej
�j�de	fd��YZdS(i(tabsolute_importtprint_functiontunicode_literalsN(tWebSocketPlugint
WebSocketTool(t	WebSockettSynchronizingWebsocketcB@s eZdZd�Zd�ZRS(u�
    Class to handle requests sent to this websocket connection.
    Each instance of this class represents a Salt websocket connection.
    Waits to receive a ``ready`` message from the client.
    Calls send on it's end of the pipe to signal to the sender on receipt
    of ``ready``.

    This class also kicks off initial information probing jobs when clients
    initially connect. These jobs help gather information about minions, jobs,
    and documentation.
    cO@s8tt|�j||�d|_d|_d|_dS(N(tsuperRt__init__tNonetpipettokentopts(tselftargstkwargs((sN/usr/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/tools/websockets.pyRs		cC@s?|jjd�dkr+|jj|�n|jdt�dS(u�
        Checks if the client has sent a ready message.
        A ready message causes ``send()`` to be called on the
        ``parent end`` of the pipe.

        Clients need to ensure that the pipe assigned to ``self.pipe`` is
        the ``parent end`` of a pipe.

        This ensures completion of the underlying websocket connection
        and can be used to synchronize parallel senders.
        uutf-8uwebsocket client readyuserver received messageN(tdatatdecodeR
tsendtFalse(R
tmessage((sN/usr/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/tools/websockets.pytreceived_message-s(t__name__t
__module__t__doc__RR(((sN/usr/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/tools/websockets.pyRs	(t
__future__RRRtcherrypytws4py.server.cherrypyserverRRtws4py.websocketRtImportErrorttoolst	websockettenginet	subscribeR(((sN/usr/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/tools/websockets.pyt<module>s


Zerion Mini Shell 1.0