20 #ifndef RIPPLE_NET_DATABASEDOWNLOADER_H
21 #define RIPPLE_NET_DATABASEDOWNLOADER_H
23 #include <ripple/net/DatabaseBody.h>
24 #include <ripple/net/SSLHTTPDownloader.h>
32 boost::asio::io_service& io_service,
42 boost::filesystem::path dstPath,
44 boost::system::error_code& ec)
override;
47 checkPath(boost::filesystem::path
const& dstPath)
override;
61 #endif // RIPPLE_NET_DATABASEDOWNLOADER_H
bool checkPath(boost::filesystem::path const &dstPath) override
DatabaseDownloader(boost::asio::io_service &io_service, beast::Journal j, Config const &config)
void closeBody(std::shared_ptr< parser > p) override
A generic endpoint for log messages.
boost::asio::io_service & io_service_
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 HTTPS file downloader.