diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2016-04-24 12:12:47 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2016-04-24 13:13:09 -0700 |
commit | 2d4ad462d58370dcf498b56b567f3babca0052d6 (patch) | |
tree | cce4bb5420c6f1503c09177d943c651cda4badb2 /paramiko | |
parent | c312b620e7945797468702aeb27cb58def3f0f80 (diff) | |
download | paramiko-2d4ad462d58370dcf498b56b567f3babca0052d6.tar.gz |
Expose some effectively-public Channel attributes in API docs.
Closes #621
Diffstat (limited to 'paramiko')
-rw-r--r-- | paramiko/channel.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/paramiko/channel.py b/paramiko/channel.py index 44a4b291..f4540bcd 100644 --- a/paramiko/channel.py +++ b/paramiko/channel.py @@ -88,15 +88,20 @@ class Channel (ClosingContextManager): :param int chanid: the ID of this channel, as passed by an existing `.Transport`. """ + #: Channel ID self.chanid = chanid + #: Remote channel ID self.remote_chanid = 0 + #: `.Transport` managing this channel self.transport = None + #: Whether the connection is presently active self.active = False self.eof_received = 0 self.eof_sent = 0 self.in_buffer = BufferedPipe() self.in_stderr_buffer = BufferedPipe() self.timeout = None + #: Whether the connection has been closed self.closed = False self.ultra_debug = False self.lock = threading.Lock() |