DynuIPRefresher/inc/IPRefresher.h
2020-05-08 16:45:27 +02:00

31 lines
553 B
C++

/**
* IPrefresher library
* - start checking ip once
* - or in loop mode
*
* @author Lukas Heiligenbrunner
* @date 06.04.2019
*/
#pragma once
class IPRefresher {
public:
/**
* refresh ip address on Dynu server
*/
void checkIPAdress(bool force);
/**
* default constructor
*/
IPRefresher() = default;
/**
* start the service in loop mode
* every 5 minutes the ip is checked an refreshed (needed for .service)
* @param loop true->loopmode on
*/
explicit IPRefresher(bool loop);
};