send_extended_data_packet (Net::SSH::Connection::Channel)

    # File lib/net/ssh/connection/channel.rb, line 338
            def send_extended_data_packet( type, data )
              # overhead is
              #   ( byte.length + id.length + type.length + strlen.length ) = 13
              data, data_to_return = split_data_for_packet( data.to_s, 13 )
              @window_size -= data.length

              msg = @buffers.writer
              msg.write_byte CHANNEL_EXTENDED_DATA
              msg.write_long @remote_id
              msg.write_long type
              msg.write_string data
              @connection.send_message msg

              data_to_return
            end