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

def paramiko::transport::Transport::__repr__ (   self  ) 

Returns a string representation of this object, for debugging.

@rtype: str

Definition at line 288 of file transport.py.

00288                       :
        """
        Returns a string representation of this object, for debugging.

        @rtype: str
        """
        out = '<paramiko.Transport at %s' % hex(long(id(self)) & 0xffffffffL)
        if not self.active:
            out += ' (unconnected)'
        else:
            if self.local_cipher != '':
                out += ' (cipher %s, %d bits)' % (self.local_cipher,
                                                  self._cipher_info[self.local_cipher]['key-size'] * 8)
            if self.is_authenticated():
                if len(self.channels) == 1:
                    out += ' (active; 1 open channel)'
                else:
                    out += ' (active; %d open channels)' % len(self.channels)
            elif self.initial_kex_done:
                out += ' (connected; awaiting auth)'
            else:
                out += ' (connecting)'
        out += '>'
        return out

    def get_security_options(self):


Generated by  Doxygen 1.6.0   Back to index