|
using | parser = boost::beast::http::basic_parser< false > |
|
|
| DatabaseDownloader (boost::asio::io_service &io_service, Config const &config, beast::Journal j) |
|
std::shared_ptr< parser > | getParser (boost::filesystem::path dstPath, std::function< void(boost::filesystem::path)> complete, boost::system::error_code &ec) override |
|
bool | checkPath (boost::filesystem::path const &dstPath) override |
|
void | closeBody (std::shared_ptr< parser > p) override |
|
std::uint64_t | size (std::shared_ptr< parser > p) override |
|
void | do_session (std::string host, std::string port, std::string target, int version, boost::filesystem::path dstPath, std::function< void(boost::filesystem::path)> complete, bool ssl, boost::asio::yield_context yield) |
|
Definition at line 28 of file DatabaseDownloader.h.
◆ error_code
◆ parser
◆ ~DatabaseDownloader()
virtual ripple::DatabaseDownloader::~DatabaseDownloader |
( |
| ) |
|
|
virtualdefault |
◆ DatabaseDownloader()
ripple::DatabaseDownloader::DatabaseDownloader |
( |
boost::asio::io_service & |
io_service, |
|
|
Config const & |
config, |
|
|
beast::Journal |
j |
|
) |
| |
|
private |
◆ getParser()
auto ripple::DatabaseDownloader::getParser |
( |
boost::filesystem::path |
dstPath, |
|
|
std::function< void(boost::filesystem::path)> |
complete, |
|
|
boost::system::error_code & |
ec |
|
) |
| |
|
overrideprivatevirtual |
◆ checkPath()
bool ripple::DatabaseDownloader::checkPath |
( |
boost::filesystem::path const & |
dstPath | ) |
|
|
overrideprivatevirtual |
◆ closeBody()
◆ size()
◆ download()
bool ripple::HTTPDownloader::download |
( |
std::string const & |
host, |
|
|
std::string const & |
port, |
|
|
std::string const & |
target, |
|
|
int |
version, |
|
|
boost::filesystem::path const & |
dstPath, |
|
|
std::function< void(boost::filesystem::path)> |
complete, |
|
|
bool |
ssl = true |
|
) |
| |
|
inherited |
◆ stop()
void ripple::HTTPDownloader::stop |
( |
| ) |
|
|
inherited |
◆ sessionIsActive()
bool ripple::HTTPDownloader::sessionIsActive |
( |
| ) |
const |
|
inherited |
◆ isStopping()
bool ripple::HTTPDownloader::isStopping |
( |
| ) |
const |
|
inherited |
◆ fail()
void ripple::HTTPDownloader::fail |
( |
boost::filesystem::path |
dstPath, |
|
|
boost::system::error_code const & |
ec, |
|
|
std::string const & |
errMsg, |
|
|
std::shared_ptr< parser > |
parser |
|
) |
| |
|
protectedinherited |
◆ do_session()
void ripple::HTTPDownloader::do_session |
( |
std::string |
host, |
|
|
std::string |
port, |
|
|
std::string |
target, |
|
|
int |
version, |
|
|
boost::filesystem::path |
dstPath, |
|
|
std::function< void(boost::filesystem::path)> |
complete, |
|
|
bool |
ssl, |
|
|
boost::asio::yield_context |
yield |
|
) |
| |
|
privateinherited |
◆ make_DatabaseDownloader
◆ MAX_PATH_LEN
◆ config_
Config const& ripple::DatabaseDownloader::config_ |
|
private |
◆ io_service_
boost::asio::io_service& ripple::DatabaseDownloader::io_service_ |
|
private |
◆ j_
◆ strand_
boost::asio::io_service::strand ripple::HTTPDownloader::strand_ |
|
privateinherited |
◆ stream_
◆ read_buf_
boost::beast::flat_buffer ripple::HTTPDownloader::read_buf_ |
|
privateinherited |
◆ stop_
◆ m_
◆ sessionActive_
bool ripple::HTTPDownloader::sessionActive_ |
|
privateinherited |
◆ c_