Lens AI Profiler Cpp
Public Member Functions | List of all members
HttpUploader Class Reference

The HttpUploader class handles uploading files to an HTTP server. More...

#include <http_uploader.h>

Public Member Functions

 ~HttpUploader ()
 Destructor for HttpUploader. More...
 
 HttpUploader (const std::string &conf_path, const std::string &uploader_name)
 Constructor for HttpUploader. More...
 
void StartUpload ()
 Starts the upload process in a separate thread.
 
void StopUpload ()
 Stops the upload process by joining the upload thread.
 
void UploadLoop ()
 The main loop for uploading files, executed in a separate thread. More...
 

Detailed Description

The HttpUploader class handles uploading files to an HTTP server.

Constructor & Destructor Documentation

◆ ~HttpUploader()

HttpUploader::~HttpUploader ( )

Destructor for HttpUploader.

Destructor for HttpUploader. Ensures upload process is stopped.

◆ HttpUploader()

HttpUploader::HttpUploader ( const std::string &  conf_path,
const std::string &  uploader_name 
)

Constructor for HttpUploader.

Parameters
conf_pathPath to the configuration file.
uploader_nameName of the uploader instance.

Member Function Documentation

◆ UploadLoop()

void HttpUploader::UploadLoop ( )

The main loop for uploading files, executed in a separate thread.

The main loop for uploading files. This function runs in a separate thread.


The documentation for this class was generated from the following files: