/** * Close a channel due to a close packet received * * @param buffer the buffer containing the packet * @throws IOException if an error occurs */ public void channelClose(Buffer buffer) throws IOException { Channel channel = getChannel(SshConstants.SSH_MSG_CHANNEL_CLOSE, buffer); if (channel == null) { return; // debug breakpoint } channel.handleClose(); }
/** * Close a channel due to a close packet received * * @param buffer the buffer containing the packet * @throws IOException if an error occurs */ public void channelClose(Buffer buffer) throws IOException { Channel channel = getChannel(SshConstants.SSH_MSG_CHANNEL_CLOSE, buffer); if (channel == null) { return; // debug breakpoint } channel.handleClose(); }