DynuIPRefresher/inc/IPRefresher.h

33 lines
678 B
C
Raw Normal View History

/**
* IPrefresher library
* - start checking ip once
* - or in loop mode
*
* @author Lukas Heiligenbrunner
* @date 06.04.2019
*/
#pragma once
namespace IPRefresher {
/**
* Status return-codes for startUpService
*/
namespace Status_Code {
const int SUCCESS = 1;
const int ERROR = -1;
const int ERROR_NO_INTERNET = -2;
const int NOREFRESH = 0;
}
2020-04-30 17:37:11 +00:00
/**
* refresh ip address on Dynu server
2020-04-30 17:37:11 +00:00
*/
bool checkIPAdress(bool force);
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)
*/
void startUpService(int interval = 300);
}