/* * WatchdogCore.h * * Created on: July 2017 * Author: wentzelc */ #ifndef REDACORE_WATCHDOGCORE_H_ #define REDACORE_WATCHDOGCORE_H_ // redA Libraries #include "SelectableCore.h" #include "LiteProtocolCore.h" // Standard C/C++ Libraries /*none*/ //--------------------------------------------------------------------------- class CWatchdogCore : public CSelectableCore { private: // Command CLiteProtocol * Protocol; // Timing timeval PingTimer; int PingInterval; // Handle THandle * Ping; public: // Life Cycle CWatchdogCore( const char * pName, CSelect * pSelect, CLogCore * pLog ); virtual ~CWatchdogCore(); // Configuration bool SetInterval( int pPingInterval ); // Process virtual bool Process(); }; //--------------------------------------------------------------------------- #endif /* REDACORE_WATCHDOGCORE_H_ */