Move SNTPClient to core:

* Refactor SNTPClient
* asio best practices
* Not derived from Stoppable
This commit is contained in:
Vinnie Falco
2015-07-15 13:33:45 -07:00
parent 8d1b169f5a
commit e82d774d32
8 changed files with 451 additions and 403 deletions

View File

@@ -53,7 +53,7 @@
#include <ripple/core/LoadFeeTrack.h>
#include <ripple/core/ConfigSections.h>
#include <ripple/ledger/CachedSLEs.h>
#include <ripple/net/SNTPClient.h>
#include <ripple/core/impl/SNTPClient.h>
#include <ripple/nodestore/Database.h>
#include <ripple/nodestore/DummyScheduler.h>
#include <ripple/nodestore/Manager.h>
@@ -403,7 +403,8 @@ public:
, serverHandler_ (make_ServerHandler (*m_networkOPs, get_io_service (),
*m_jobQueue, *m_networkOPs, *m_resourceManager, *m_collectorManager))
, m_sntpClient (SNTPClient::New (*this))
, m_sntpClient (make_SNTPClient(
deprecatedLogs().journal("SNTPClient")))
, m_validators (Validators::make_Manager(*this, get_io_service(),
m_logs.journal("UVL"), getConfig ()))