def send_to_litle_stream(options = {}, path = (File.dirname(@path_to_batches)))
      url = get_config(:fast_url, options)
      port = get_config(:fast_port, options)


      if(url == nil or url == "") then
        raise ArgumentError, "A URL for fastbatch was not specified in the config file or passed options. Reconfigure and try again."
      end

      if(port == "" or port == nil) then
        raise ArgumentError, "A port number for fastbatch was not specified in the config file or passed options. Reconfigure and try again."
      end

      if(path[-1,1] != '/' && path[-1,1] != '\\') then
        path = path + File::SEPARATOR
      end

      if (!File.directory?(path + RESPONSE_PATH_DIR)) then
        Dir.mkdir(path + RESPONSE_PATH_DIR)
      end

      Dir.foreach(path) do |filename|
        if((filename =~ /#{REQUEST_FILE_PREFIX}\d+#{COMPLETE_FILE_SUFFIX}\z/) != nil) then
          begin
            socket = TCPSocket.open(url,port.to_i)
            ssl_context = OpenSSL::SSL::SSLContext.new()
            ssl_context.ssl_version = :SSLv23
            ssl_socket = OpenSSL::SSL::SSLSocket.new(socket, ssl_context)
            ssl_socket.sync_close = true
            ssl_socket.connect

          rescue => e
            raise "A connection couldn't be established. Are you sure you have the correct credentials? Exception: " + e.message
          end

          File.foreach(path + filename) do |li|
            ssl_socket.puts li

          end
          File.rename(path + filename, path + filename + SENT_FILE_SUFFIX)
          File.open(path + RESPONSE_PATH_DIR + (filename + '.asc' + RECEIVED_FILE_SUFFIX).gsub("request", "response"), 'a+') do |fo|
            while line = ssl_socket.gets
              fo.puts(line)
            end
          end

        end
      end
    end
def send_to_litle_stream(options = {}, path = (File.dirname(@path_to_batches)))
      url = get_config(:fast_url, options)
      port = get_config(:fast_port, options)


      if(url == nil or url == "") then
        raise ArgumentError, "A URL for fastbatch was not specified in the config file or passed options. Reconfigure and try again."
      end

      if(port == "" or port == nil) then
        raise ArgumentError, "A port number for fastbatch was not specified in the config file or passed options. Reconfigure and try again."
      end

      if(path[-1,1] != '/' && path[-1,1] != '\\') then
        path = path + File::SEPARATOR
      end

      if (!File.directory?(path + RESPONSE_PATH_DIR)) then
        Dir.mkdir(path + RESPONSE_PATH_DIR)
      end

      Dir.foreach(path) do |filename|
        if((filename =~ /#{REQUEST_FILE_PREFIX}\d+#{COMPLETE_FILE_SUFFIX}\z/) != nil) then
          begin
            socket = TCPSocket.open(url,port.to_i)
            ssl_context = OpenSSL::SSL::SSLContext.new()
            ssl_context.ssl_version = :SSLv23
            ssl_socket = OpenSSL::SSL::SSLSocket.new(socket, ssl_context)
            ssl_socket.sync_close = true
            ssl_socket.connect

          rescue => e
            raise "A connection couldn't be established. Are you sure you have the correct credentials? Exception: " + e.message
          end

          File.foreach(path + filename) do |li|
            ssl_socket.puts li

          end
          File.rename(path + filename, path + filename + SENT_FILE_SUFFIX)
          File.open(path + RESPONSE_PATH_DIR + (filename + '.asc' + RECEIVED_FILE_SUFFIX).gsub("request", "response"), 'a+') do |fo|
            while line = ssl_socket.gets
              fo.puts(line)
            end
          end

        end
      end
    end
Sends all previously unsent LitleRequests in the specified directory to the Litle server
 by use of fast batch. All results will be written to disk as we get them. Note that use
 of fastbatch is strongly discouraged!