Files
DynuIPRefresher/inc/IPRefresher.h
T

33 lines
678 B
C++
Raw Normal View History

2020-05-08 16:45:27 +02:00
/**
* IPrefresher library
* - start checking ip once
* - or in loop mode
*
* @author Lukas Heiligenbrunner
* @date 06.04.2019
*/
#pragma once
2020-05-15 13:57:09 +02:00
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;
}
/**
* refresh ip address on Dynu server
*/
bool checkIPAdress(bool force);
2019-10-23 09:24:35 +02:00
2020-04-30 12:16:29 +02:00
/**
* start the service in loop mode
* every 5 minutes the ip is checked an refreshed (needed for .service)
*/
2020-05-15 13:57:09 +02:00
void startUpService(int interval = 300);
}