Home | Trees | Index | Help |
---|
Package paramiko :: Module message :: Class Message |
|
object
--+
|
Message
Method Summary | |
---|---|
Create a new SSH2 Message. | |
string |
Returns a string representation of this object, for debugging. |
string |
Return the byte stream content of this Message, as a string. |
add(self,
*seq)
| |
add_boolean(self,
b)
| |
add_byte(self,
b)
| |
add_bytes(self,
b)
| |
add_int(self,
n)
| |
Add a 64-bit int to the stream. | |
add_list(self,
l)
| |
this only works on positive numbers | |
add_string(self,
s)
| |
bool |
Fetch a boolean from the stream. |
string |
Return the next byte of the Message, without decomposing it. |
string |
Return the next n bytes of the Message, without
decomposing into an int, string, etc. |
int |
Fetch an int from the stream. |
long |
Fetch a 64-bit int from the stream. |
list of strings |
Fetch a list of strings from the stream. |
long |
Fetch a long int (mpint) from the stream. |
string |
Return the bytes of this Message that haven't already been parsed and returned. |
string |
Returns the bytes of this Message that have been parsed and returned. |
string |
Fetch a string from the stream. |
Rewind the message to the beginning as if no items had been parsed out of it yet. | |
_add(self,
i)
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Method Details |
---|
__init__(self,
content='')
Create a new SSH2 Message.
|
__repr__(self)
Returns a string representation of this object, for debugging.
|
__str__(self)
Return the byte stream content of this Message, as a string.
|
add_int64(self, n)Add a 64-bit int to the stream.
|
add_mpint(self, z)this only works on positive numbers |
get_boolean(self)Fetch a boolean from the stream.
|
get_byte(self)Return the next byte of the Message, without decomposing it. This is equivalent toget_bytes(1) .
|
get_bytes(self, n)Return the nextn bytes of the Message, without
decomposing into an int, string, etc. Just the raw bytes are
returned.
|
get_int(self)Fetch an int from the stream.
|
get_int64(self)Fetch a 64-bit int from the stream.
|
get_list(self)Fetch a list of strings from the stream. These are trivially encoded as comma-separated values in a string.
|
get_mpint(self)Fetch a long int (mpint) from the stream.
|
get_remainder(self)Return the bytes of this Message that haven't already been parsed and returned.
|
get_so_far(self)Returns the bytes of this Message that have been parsed and returned. The string passed into a Message's constructor can be regenerated by concatenatingget_so_far and get_remainder .
|
get_string(self)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.)
|
rewind(self)Rewind the message to the beginning as if no items had been parsed out of it yet. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Dec 12 02:04:25 2004 | http://epydoc.sf.net |