Commit 0ab9647a authored by Sam Rushing's avatar Sam Rushing

send_channel_request_success(): new method

send_channel_request_failure(): new method
Remote_Channel.__init__(): probably incorrect attempt to increment channel id
parent 144020f6
......@@ -420,12 +420,18 @@ class Channel:
"""
self.channel_request_cv.wake_one(args=True)
def send_channel_request_success (self):
self.transport.send (SSH_MSG_CHANNEL_SUCCESS_PAYLOAD, (SSH_MSG_CHANNEL_SUCCESS, self.remote_channel.channel_id))
def channel_request_failure(self):
"""channel_request_success(self) -> None
This is called whenever a CHANNEL_FAILURE message is received.
"""
self.channel_request_cv.wake_one(args=False)
def send_channel_request_failure (self):
self.transport.send (SSH_MSG_CHANNEL_FAILURE_PAYLOAD, (SSH_MSG_CHANNEL_FAILURE, self.remote_channel.channel_id))
def channel_open_success(self, data):
"""channel_open_success(self, data) -> None
Indicates the channel is opened.
......@@ -454,3 +460,7 @@ class Remote_Channel:
closed = 1
eof = 1
def __init__ (self):
self.channel_id = Remote_Channel.channel_id
Remote_Channel.channel_id += 1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment