Logo Search packages:      
Sourcecode: paramiko version File versions  Download package

def paramiko::channel::Channel::recv_ready (   self  ) 

Returns true if data is buffered and ready to be read from this
channel.  A C{False} result does not mean that the channel has closed;
it means you may need to wait before more data arrives.

@return: C{True} if a L{recv} call on this channel would immediately
    return at least one byte; C{False} otherwise.
@rtype: boolean

Definition at line 484 of file channel.py.

00484                         :
        """
        Returns true if data is buffered and ready to be read from this
        channel.  A C{False} result does not mean that the channel has closed;
        it means you may need to wait before more data arrives.
        
        @return: C{True} if a L{recv} call on this channel would immediately
            return at least one byte; C{False} otherwise.
        @rtype: boolean
        """
        self.lock.acquire()
        try:
            if len(self.in_buffer) == 0:
                return False
            return True
        finally:
            self.lock.release()

    def recv(self, nbytes):


Generated by  Doxygen 1.6.0   Back to index