send_data_packet (Net::SSH::Connection::Channel)

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

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

              data_to_return
            end