2020-05-08 14:45:27 +00:00
|
|
|
/**
|
|
|
|
* IPrefresher library
|
|
|
|
* - start checking ip once
|
|
|
|
* - or in loop mode
|
|
|
|
*
|
|
|
|
* @author Lukas Heiligenbrunner
|
|
|
|
* @date 06.04.2019
|
|
|
|
*/
|
2019-08-02 20:44:42 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class IPRefresher {
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* refresh ip address on Dynu server
|
|
|
|
*/
|
2019-10-23 07:24:35 +00:00
|
|
|
void checkIPAdress(bool force);
|
|
|
|
|
2020-04-30 17:37:11 +00:00
|
|
|
/**
|
|
|
|
* default constructor
|
|
|
|
*/
|
2020-05-07 12:54:40 +00:00
|
|
|
IPRefresher() = default;
|
2020-04-30 10:16:29 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* start the service in loop mode
|
|
|
|
* every 5 minutes the ip is checked an refreshed (needed for .service)
|
|
|
|
* @param loop true->loopmode on
|
|
|
|
*/
|
2019-10-27 13:14:03 +00:00
|
|
|
explicit IPRefresher(bool loop);
|
2019-08-02 20:44:42 +00:00
|
|
|
};
|