Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files (x86)/MySQL/MySQL Workbench 6.1 CE/python/site-packages/paramiko/ |
Upload File : |
ó ¤'Sc @ sZ d Z d d l Z d d l Z d d l Z d e f d „ ƒ YZ d e f d „ ƒ YZ d S( sÖ Attempt to generalize the "feeder" part of a Channel: an object which can be read from and closed, but is reading from a buffer fed by another thread. The read operations are blocking and can have a timeout set. iÿÿÿÿNt PipeTimeoutc B s e Z d Z RS( sP Indicates that a timeout was reached on a read from a L{BufferedPipe}. ( t __name__t __module__t __doc__( ( ( sb C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE/python/site-packages\paramiko\buffered_pipe.pyR s t BufferedPipec B sY e Z d Z d „ Z d „ Z d „ Z d „ Z d d „ Z d „ Z d „ Z d „ Z RS( sª A buffer that obeys normal read (with timeout) & close semantics for a file or socket, but is fed data from another thread. This is used by L{Channel}. c C sL t j ƒ | _ t j | j ƒ | _ d | _ t j d ƒ | _ t | _ d S( Nt B( t threadingt Lockt _lockt Conditiont _cvt Nonet _eventt arrayt _buffert Falset _closed( t self( ( sb C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE/python/site-packages\paramiko\buffered_pipe.pyt __init__, s c C s9 | | _ t | j ƒ d k r+ | j ƒ n | j ƒ d S( s Set an event on this buffer. When data is ready to be read (or the buffer has been closed), the event will be set. When no data is ready, the event will be cleared. @param event: the event to set/clear @type event: Event i N( R t lenR t sett clear( R t event( ( sb C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE/python/site-packages\paramiko\buffered_pipe.pyt set_event3 s c C sb | j j ƒ z@ | j d k r/ | j j ƒ n | j j | ƒ | j j ƒ Wd | j j ƒ Xd S( sÖ Feed new data into this pipe. This method is assumed to be called from a separate thread, so synchronization is done. @param data: the data to add @type data: str N( R t acquireR R R R t fromstringR t notifyAllt release( R t data( ( sb C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE/python/site-packages\paramiko\buffered_pipe.pyt feedB s c C sC | j j ƒ z! t | j ƒ d k r) t St SWd | j j ƒ Xd S( ss Returns true if data is buffered and ready to be read from this feeder. A C{False} result does not mean that the feeder has closed; it means you may need to wait before more data arrives. @return: C{True} if a L{read} call would immediately return at least one byte; C{False} otherwise. @rtype: bool i N( R R R R R t TrueR ( R ( ( sb C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE/python/site-packages\paramiko\buffered_pipe.pyt read_readyS s c C sZ d } | j j ƒ z2t | j ƒ d k rÐ | j r8 | S| d k rP t ƒ ‚ n x} t | j ƒ d k rÌ | j rÌ t j ƒ } | j j | ƒ | d k rS | t j ƒ | 8} | d k rÉ t ƒ ‚ qÉ qS qS Wn t | j ƒ | k r'| j j ƒ } | j 2| j d k rD| j rD| j j ƒ qDn | j | j ƒ } | j | 4Wd | j j ƒ X| S( sŠ Read data from the pipe. The return value is a string representing the data received. The maximum amount of data to be received at once is specified by C{nbytes}. If a string of length zero is returned, the pipe has been closed. The optional C{timeout} argument can be a nonnegative float expressing seconds, or C{None} for no timeout. If a float is given, a C{PipeTimeout} will be raised if the timeout period value has elapsed before any data arrives. @param nbytes: maximum number of bytes to read @type nbytes: int @param timeout: maximum seconds to wait (or C{None}, the default, to wait forever) @type timeout: float @return: data @rtype: str @raise PipeTimeout: if a timeout was specified and no data was ready before that timeout t i g N( R R R R R R t timeR t waitR t tostringR R R ( R t nbytest timeoutt outt then( ( sb C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE/python/site-packages\paramiko\buffered_pipe.pyt reade s0 "c C si | j j ƒ zG | j j ƒ } | j 2| j d k rO | j rO | j j ƒ n | SWd | j j ƒ Xd S( s± Clear out the buffer and return all data that was in it. @return: any data that was in the buffer prior to clearing it out @rtype: str N( R R R R# R R R R R ( R R&