diff options
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | paramiko/channel.py | 4 | ||||
-rw-r--r-- | paramiko/common.py | 5 |
3 files changed, 9 insertions, 1 deletions
@@ -205,3 +205,4 @@ v0.9 FEAROW * server mode needs better documentation * sftp server mode * figure out if there's a way to put stdout/stderr on different channels? +* add method to block until a channel's "exit-status" is set diff --git a/paramiko/channel.py b/paramiko/channel.py index 833ae62b..202f89a3 100644 --- a/paramiko/channel.py +++ b/paramiko/channel.py @@ -379,7 +379,9 @@ class Channel (object): def recv_ready(self): """ - Returns true if data is ready to be read from this channel. + Returns true if data is buffered and ready to be read from this + channel. A C{False} result does not mean that the channel has closed; + it means you may need to wait before more data arrives. @return: C{True} if a L{recv} call on this channel would immediately return at least one byte; C{False} otherwise. diff --git a/paramiko/common.py b/paramiko/common.py index 41972abf..d7414d16 100644 --- a/paramiko/common.py +++ b/paramiko/common.py @@ -44,6 +44,11 @@ MSG_NAMES = { MSG_SERVICE_ACCEPT: 'service-accept', MSG_KEXINIT: 'kexinit', MSG_NEWKEYS: 'newkeys', + 30: 'kex30', + 31: 'kex31', + 32: 'kex32', + 33: 'kex33', + 34: 'kex34', MSG_USERAUTH_REQUEST: 'userauth-request', MSG_USERAUTH_FAILURE: 'userauth-failure', MSG_USERAUTH_SUCCESS: 'userauth-success', |