[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.
This commit is contained in:
Robey Pointer 2004-11-26 22:07:31 +00:00
parent df63dc4154
commit ed8b376205
3 changed files with 9 additions and 1 deletions

1
README
View File

@ -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

View File

@ -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.

View File

@ -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',