|
Monero
|
#include <bootstrap_daemon.h>

Public Member Functions | |
| bootstrap_daemon (std::function< std::map< std::string, bool >()> get_public_nodes, bool rpc_payment_enabled, const std::string &proxy) | |
| bootstrap_daemon (const std::string &address, boost::optional< epee::net_utils::http::login > credentials, bool rpc_payment_enabled, const std::string &proxy) | |
| std::string | address () const noexcept |
| boost::optional< std::pair< uint64_t, uint64_t > > | get_height () |
| bool | handle_result (bool success, const std::string &status) |
| template<class t_request, class t_response> | |
| bool | invoke_http_json (const boost::string_ref uri, const t_request &out_struct, t_response &result_struct) |
| template<class t_request, class t_response> | |
| bool | invoke_http_bin (const boost::string_ref uri, const t_request &out_struct, t_response &result_struct) |
| template<class t_request, class t_response> | |
| bool | invoke_http_json_rpc (const boost::string_ref command_name, const t_request &out_struct, t_response &result_struct) |
| void | set_proxy (const std::string &address) |
Private Member Functions | |
| bool | set_server (const std::string &address, const boost::optional< epee::net_utils::http::login > &credentials=boost::none) |
| bool | switch_server_if_needed () |
Private Attributes | |
| net::http::client | m_http_client |
| const bool | m_rpc_payment_enabled |
| const std::unique_ptr< bootstrap_node::selector > | m_selector |
| boost::mutex | m_selector_mutex |
| cryptonote::bootstrap_daemon::bootstrap_daemon | ( | std::function< std::map< std::string, bool >()> | get_public_nodes, |
| bool | rpc_payment_enabled, | ||
| const std::string & | proxy ) |
| cryptonote::bootstrap_daemon::bootstrap_daemon | ( | const std::string & | address, |
| boost::optional< epee::net_utils::http::login > | credentials, | ||
| bool | rpc_payment_enabled, | ||
| const std::string & | proxy ) |
|
noexcept |
| bool cryptonote::bootstrap_daemon::handle_result | ( | bool | success, |
| const std::string & | status ) |
|
inline |
|
inline |
|
inline |
| void cryptonote::bootstrap_daemon::set_proxy | ( | const std::string & | address | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |