mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-09 16:33:46 +00:00
Add a reload time for the XLX Hosts file.
This commit is contained in:
parent
82e6b90454
commit
a057f757ab
6 changed files with 39 additions and 6 deletions
|
|
@ -19,6 +19,8 @@
|
|||
#if !defined(Reflectors_H)
|
||||
#define Reflectors_H
|
||||
|
||||
#include "Timer.h"
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
|
|
@ -42,16 +44,19 @@ public:
|
|||
|
||||
class CReflectors {
|
||||
public:
|
||||
CReflectors(const std::string& hostsFile);
|
||||
CReflectors(const std::string& hostsFile, unsigned int reloadTime);
|
||||
~CReflectors();
|
||||
|
||||
bool load();
|
||||
|
||||
CReflector* find(unsigned int id);
|
||||
|
||||
void clock(unsigned int ms);
|
||||
|
||||
private:
|
||||
std::string m_hostsFile;
|
||||
std::vector<CReflector*> m_reflectors;
|
||||
CTimer m_timer;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue