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

def paramiko::transport::Transport::send_ignore (   self,
  bytes = None 
)

Send a junk packet across the encrypted link.  This is sometimes used
to add "noise" to a connection to confuse would-be attackers.  It can
also be used as a keep-alive for long lived connections traversing
firewalls.

@param bytes: the number of random bytes to send in the payload of the
    ignored packet -- defaults to a random number from 10 to 41.
@type bytes: int

@since: fearow

Definition at line 649 of file transport.py.

00649                                      :
        """
        Send a junk packet across the encrypted link.  This is sometimes used
        to add "noise" to a connection to confuse would-be attackers.  It can
        also be used as a keep-alive for long lived connections traversing
        firewalls.

        @param bytes: the number of random bytes to send in the payload of the
            ignored packet -- defaults to a random number from 10 to 41.
        @type bytes: int

        @since: fearow
        """
        m = Message()
        m.add_byte(chr(MSG_IGNORE))
        randpool.stir()
        if bytes is None:
            bytes = (ord(randpool.get_bytes(1)) % 32) + 10
        m.add_bytes(randpool.get_bytes(bytes))
        self._send_user_message(m)

    def renegotiate_keys(self):


Generated by  Doxygen 1.6.0   Back to index