20 #ifndef RIPPLE_NET_DATABASEDOWNLOADER_H
21 #define RIPPLE_NET_DATABASEDOWNLOADER_H
23 #include <ripple/net/DatabaseBody.h>
24 #include <ripple/net/HTTPDownloader.h>
35 boost::asio::io_service& io_service,
44 boost::filesystem::path dstPath,
46 boost::system::error_code& ec)
override;
49 checkPath(boost::filesystem::path
const& dstPath)
override;
62 boost::asio::io_service& io_service,
70 boost::asio::io_service& io_service,
76 #endif // RIPPLE_NET_DATABASEDOWNLOADER_H
bool checkPath(boost::filesystem::path const &dstPath) override
void closeBody(std::shared_ptr< parser > p) override
virtual ~DatabaseDownloader()=default
friend std::shared_ptr< DatabaseDownloader > make_DatabaseDownloader(boost::asio::io_service &io_service, Config const &config, beast::Journal j)
A generic endpoint for log messages.
boost::asio::io_service & io_service_
DatabaseDownloader(boost::asio::io_service &io_service, Config const &config, beast::Journal j)
static const std::uint8_t MAX_PATH_LEN
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::shared_ptr< parser > getParser(boost::filesystem::path dstPath, std::function< void(boost::filesystem::path)> complete, boost::system::error_code &ec) override
std::uint64_t size(std::shared_ptr< parser > p) override
Provides an asynchronous HTTP[S] file downloader.
std::shared_ptr< DatabaseDownloader > make_DatabaseDownloader(boost::asio::io_service &io_service, Config const &config, beast::Journal j)