| Home | Trees | Indices | Help | 
|---|
|  | 
object --+
         |
        Message
An SSH2 Message is a stream of bytes that encodes some combination of strings, integers, bools, and infinite-precision integers (known in python as longs). This class builds or breaks down such a byte stream.
Normally you don't need to deal with anything this low-level, but it's exposed for people implementing custom extensions, or features that paramiko doesn't support yet.
| Instance Methods | |||
| 
 | |||
| string | 
 | ||
| string | 
 | ||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| bool | 
 | ||
| string | 
 | ||
| string | 
 | ||
| int | 
 | ||
| long | 
 | ||
| list of strings | 
 | ||
| long | 
 | ||
| string | 
 | ||
| string | 
 | ||
| string | 
 | ||
| 
 | |||
| Inherited from  | |||
| Properties | |
| Inherited from  | 
| Method Details | 
| 
 Create a new SSH2 Message. 
 | 
| 
 Returns a string representation of this object, for debugging. 
 | 
| 
 Return the byte stream content of this Message, as a string. 
 | 
| 
 Add a sequence of items to the stream. The values are encoded based on their type: str, int, bool, list, or long. 
 Bug: longs are encoded non-deterministically. Don't use this method. | 
| 
 Add a boolean value to the stream. 
 | 
| 
 Write a single byte to the stream, without any formatting. 
 | 
| 
 Write bytes to the stream, without any formatting. 
 | 
| 
 Add an integer to the stream. 
 | 
| 
 Add a 64-bit int to the stream. 
 | 
| 
 Add a list of strings to the stream. They are encoded identically to a single string of values separated by commas. (Yes, really, that's how SSH2 does it.) 
 | 
| 
 Add a long int to the stream, encoded as an infinite-precision integer. This method only works on positive numbers. 
 | 
| 
 Add a string to the stream. 
 | 
| 
 Fetch a boolean from the stream. 
 | 
| 
 Return the next byte of the Message, without decomposing it. This is equivalent to get_bytes(1). 
 | 
| 
 Return the next  
 | 
| 
 Fetch an int from the stream. 
 | 
| 
 Fetch a 64-bit int from the stream. 
 | 
| 
 Fetch a list of strings from the stream. These are trivially encoded as comma-separated values in a string. 
 | 
| 
 Fetch a long int (mpint) from the stream. 
 | 
| 
 Return the bytes of this Message that haven't already been parsed and returned. 
 | 
| 
 Returns the bytes of this Message that have been parsed and returned. 
  The string passed into a Message's constructor can be regenerated by 
  concatenating  
 | 
| 
 Fetch a string from the stream. This could be a byte string and may contain unprintable characters. (It's not unheard of for a string to contain another byte-stream Message.) 
 | 
| Home | Trees | Indices | Help | 
|---|
| Generated by Epydoc 3.0.1 on Sun Nov 1 22:14:16 2009 | http://epydoc.sourceforge.net |