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