Method: Net::SSH::Connection::Channel#do_open_confirmation

Defined in:
lib/net/ssh/connection/channel.rb

#do_open_confirmation(remote_id, max_window, max_packet) ⇒ Object

Invoked when the server confirms that a channel has been opened. The remote_id is the id of the channel as assigned by the remote host, and max_window and max_packet are the maximum window and maximum packet sizes, respectively. If an open-confirmation callback was given when the channel was created, it is invoked at this time with the channel itself as the sole argument.



508
509
510
511
512
513
514
# File 'lib/net/ssh/connection/channel.rb', line 508

def do_open_confirmation(remote_id, max_window, max_packet) #:nodoc:
  @remote_id = remote_id
  @remote_window_size = @remote_maximum_window_size = max_window
  @remote_maximum_packet_size = max_packet
  connection.forward.agent(self) if connection.options[:forward_agent] && type == "session"
  @on_confirm_open.call(self) if @on_confirm_open
end