Handles sending log artifacts to an FTP server.
More...
#include <ftp_logger.h>
|
| FTPLogger (uint32_t server_ip_host_ordered, uint16_t server_port_host_ordered, const std::string &username, const std::string &password, uint32_t timeout_milliseconds) |
|
| FTPLogger (uint32_t server_ip_host_ordered, uint16_t ftp_server_port_host_ordered, std::string username, std::string password, uint32_t timeout_milliseconds, uint32_t reconnect_retries) |
|
bool | Connect () |
|
bool | Disconnect () |
|
bool | IsConnected () const |
|
bool | WriteFile (const std::string &filename, const std::string &content) |
| Truncate the remote file with the given name and set its content.
|
|
bool | AppendFile (const std::string &filename, const std::string &content) |
| Append the given content to the remote file with the given name.
|
|
bool | PutFile (const std::string &local_filename, const std::string &remote_filename="") |
|
void | QueuePutFile (const std::string &local_filename, const std::string &remote_filename="") |
|
const std::vector< std::pair< std::string, std::string > > | send_file_queue () const |
| (Local path, Remote path) pairs that have been queued for sending.
|
|
void | ClearSendQueue () |
|
const std::vector< std::string > & | error_log () const |
|
Handles sending log artifacts to an FTP server.
The documentation for this class was generated from the following files: