Add a reload time for the XLX Hosts file.

This commit is contained in:
Jonathan Naylor 2017-09-26 13:08:35 +01:00
parent 82e6b90454
commit a057f757ab
6 changed files with 39 additions and 6 deletions

View file

@ -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