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

def paramiko::transport::Transport::use_compression (   self,
  compress = True 
)

Turn on/off compression.  This will only have an affect before starting
the transport (ie before calling L{connect}, etc).  By default,
compression is off since it negatively affects interactive sessions
and is not fully tested.

@param compress: C{True} to ask the remote client/server to compress
    traffic; C{False} to refuse compression
@type compress: bool

@since: 1.5.2

Definition at line 1165 of file transport.py.

01165                                             :
        """
        Turn on/off compression.  This will only have an affect before starting
        the transport (ie before calling L{connect}, etc).  By default,
        compression is off since it negatively affects interactive sessions
        and is not fully tested.
        
        @param compress: C{True} to ask the remote client/server to compress
            traffic; C{False} to refuse compression
        @type compress: bool
        
        @since: 1.5.2
        """
        if compress:
            self._preferred_compression = ( 'zlib@openssh.com', 'zlib', 'none' )
        else:
            self._preferred_compression = ( 'none', )

    def stop_thread(self):


Generated by  Doxygen 1.6.0   Back to index