handleMSG_CHANNEL_OPEN_CONFIRMATION method
If the remote side can open the channel, it responds with SSH_MSG_CHANNEL_OPEN_CONFIRMATION.
Implementation
void handleMSG_CHANNEL_OPEN_CONFIRMATION(MSG_CHANNEL_OPEN_CONFIRMATION msg) {
if (tracePrint != null) {
tracePrint(
'$hostport: MSG_CHANNEL_OPEN_CONFIRMATION local_id=${msg.recipientChannel} remote_id=${msg.senderChannel}');
}
Channel chan = channels[msg.recipientChannel];
if (chan == null || chan.remoteId == null) {
throw FormatException('$hostport: open invalid channel');
}
chan.remoteId = msg.senderChannel;
chan.windowC = msg.initialWinSize;
chan.opened = true;
handleChannelOpenConfirmation(chan);
}