From ed8b3762057cd206ef0262920991ba87ec193184 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Fri, 26 Nov 2004 22:07:31 +0000 Subject: [PATCH] [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-116] doc fixups explain "recv_ready" better, and add debug descriptions for the kex codes. --- README | 1 + paramiko/channel.py | 4 +++- paramiko/common.py | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README b/README index 3218494..fdb21cf 100644 --- a/README +++ b/README @@ -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 833ae62..202f89a 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 41972ab..d7414d1 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',