mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 10:35:50 +00:00
26 lines
476 B
C++
26 lines
476 B
C++
#ifndef __TIMINGSERVICE__
|
|
#define __TIMINGSERVICE__
|
|
|
|
#include <boost/asio.hpp>
|
|
|
|
/* responsible for keeping track of network time
|
|
and kicking off the publishing process
|
|
*/
|
|
|
|
class TimingService
|
|
{
|
|
boost::asio::deadline_timer* mLedgerTimer;
|
|
boost::asio::deadline_timer* mPropTimer;
|
|
boost::asio::deadline_timer* mValidTimer;
|
|
|
|
void handleLedger();
|
|
void handleProp();
|
|
void handleValid();
|
|
public:
|
|
TimingService();
|
|
void start(boost::asio::io_service& ioService);
|
|
|
|
|
|
|
|
};
|
|
#endif |