# File lib/net/ssh/connection/channel.rb, line 468 468: def send_channel_request(request_name, *data, &callback) 469: info { "sending channel request #{request_name.inspect}" } 470: msg = Buffer.from(:byte, CHANNEL_REQUEST, 471: :long, remote_id, :string, request_name, 472: :bool, !callback.nil?, *data) 473: connection.send_message(msg) 474: pending_requests << callback if callback 475: end