| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
Packetizer
Implementation of the base SSH packet protocol.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Class Variables | |
REKEY_PACKETS = 536870912
|
|
REKEY_BYTES = 536870912
|
|
REKEY_PACKETS_OVERFLOW_MAX = 536870912
|
|
REKEY_BYTES_OVERFLOW_MAX = 536870912
|
|
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Returns ``True`` if a new set of keys needs to be negotiated. This will be triggered during a packet read or write, so it should be checked after every read or write, or at least after every few. |
Turn on/off the callback keepalive. If ``interval`` seconds pass with no data read from or written to the socket, the callback will be executed and the timer will be reset. |
Read as close to N bytes as possible, blocking as long as necessary.
:param int n: number of bytes to read
:return: the data read, as a `str`
:raises EOFError:
if the socket was closed before all the bytes could be read
|
Read a line from the socket. We assume no data is pending after the line, so it's okay to attempt large reads. |
Only one thread should ever be in this function (no other locking is done). :raises SSHException: if the packet is mangled :raises NeedRekeyException: if the transport should rekey |
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu May 7 11:49:47 2015 | http://epydoc.sourceforge.net |