DynuIPRefresher/inc/FileLogger.h

27 lines
411 B
C
Raw Permalink Normal View History

/**
* Read and write current ip to a temp file to remember last ip until restart
*
* @author Lukas Heiligenbrunner
* @date 05.05.2019
*/
2020-04-30 10:16:29 +00:00
2019-10-26 12:41:43 +00:00
#pragma once
#include <string>
2020-04-30 10:16:29 +00:00
2019-10-26 12:41:43 +00:00
class FileLogger {
public:
/**
* safe ip to temp file
* @param ip ip address to save
*/
void safeip(std::string ip);
/**
* read ip from file
* @return read ip
*/
std::string readip();
};