|
Monero
|
Namespaces | |
| http | |
Classes | |
| class | blocked_mode_client |
| class | boosted_tcp_server |
| class | buffer |
| struct | calculate_times_struct |
| class | connection |
| Represents a single connection from a client. More... | |
| class | connection_basic |
| class | connection_basic_pimpl |
| class | connection_basic_shared_state |
| struct | connection_context_base |
| struct | direct_connect |
| class | do_nothing_sub_handler |
| struct | i_connection_filter |
| struct | i_connection_limit |
| class | i_network_throttle |
| struct | i_service_endpoint |
| struct | i_sub_handler |
| struct | i_target_handler |
| class | ipv4_network_address |
| class | ipv4_network_subnet |
| class | ipv6_network_address |
| class | network_address |
| class | network_throttle |
| struct | network_throttle_bw |
| class | network_throttle_manager |
| struct | ssl_authentication_t |
| class | ssl_options_t |
Typedefs | |
| typedef double | network_speed_kbps |
| typedef double | network_speed_bps |
| typedef double | network_time_seconds |
| typedef double | network_MB |
| typedef calculate_times_struct | calculate_times_struct |
Enumerations | |
| enum | t_connection_type { e_connection_type_NET = 0, e_connection_type_RPC = 1, e_connection_type_P2P = 2 } |
| enum | address_type : std::uint8_t { address_type::invalid = 0, address_type::ipv4 = 1, address_type::ipv6 = 2, address_type::i2p = 3, address_type::tor = 4 } |
| enum | zone : std::uint8_t { zone::invalid = 0, zone::public_ = 1, zone::i2p = 2, zone::tor = 3 } |
| enum | ssl_support_t : uint8_t { ssl_support_t::e_ssl_support_disabled, ssl_support_t::e_ssl_support_enabled, ssl_support_t::e_ssl_support_autodetect } |
| enum | ssl_verification_t : uint8_t { ssl_verification_t::none = 0, ssl_verification_t::system_ca, ssl_verification_t::user_certificates, ssl_verification_t::user_ca } |
Functions | |
| const char * | get_hex_vals () |
| const char * | get_unsave_chars () |
| bool | is_unsafe (unsigned char compare_char) |
| std::string | dec_to_hex (char num, int radix) |
| int | get_index (const char *s, char c) |
| std::string | hex_to_dec_2bytes (const char *s) |
| std::string | convert (char val) |
| std::string | conver_to_url_format (const std::string &uri) |
| std::string | convert_from_url_format (const std::string &uri) |
| std::string | convert_to_url_format_force_all (const std::string &uri) |
| template<typename T > | |
| T & | check_and_get (std::shared_ptr< T > &ptr) |
| catch (const std::exception &e) | |
| catch (...) | |
| std::string | to_string (t_connection_type type) |
| const char * | zone_to_string (zone value) noexcept |
| zone | zone_from_string (boost::string_ref value) noexcept |
| bool | is_ip_local (uint32_t ip) |
| bool | is_ip_loopback (uint32_t ip) |
| bool | parse_uri (const std::string uri, http::uri_content &content) |
| bool | parse_url_ipv6 (const std::string url_str, http::url_content &content) |
| bool | parse_url (const std::string url_str, http::url_content &content) |
| constexpr size_t | get_ssl_magic_size () |
| bool | is_ssl (const unsigned char *data, size_t len) |
| bool | ssl_support_from_string (ssl_support_t &ssl, boost::string_ref s) |
| bool | create_ec_ssl_certificate (EVP_PKEY *&pkey, X509 *&cert) |
| bool | create_rsa_ssl_certificate (EVP_PKEY *&pkey, X509 *&cert) |
| boost::system::error_code | store_ssl_keys (boost::asio::ssl::context &ssl, const boost::filesystem::path &base) |
Store private key for ssl at base + ".key" unencrypted and certificate for ssl at base + ".crt". More... | |
| bool | operator== (const ipv4_network_address &lhs, const ipv4_network_address &rhs) noexcept |
| bool | operator!= (const ipv4_network_address &lhs, const ipv4_network_address &rhs) noexcept |
| bool | operator< (const ipv4_network_address &lhs, const ipv4_network_address &rhs) noexcept |
| bool | operator<= (const ipv4_network_address &lhs, const ipv4_network_address &rhs) noexcept |
| bool | operator> (const ipv4_network_address &lhs, const ipv4_network_address &rhs) noexcept |
| bool | operator>= (const ipv4_network_address &lhs, const ipv4_network_address &rhs) noexcept |
| bool | operator== (const ipv4_network_subnet &lhs, const ipv4_network_subnet &rhs) noexcept |
| bool | operator!= (const ipv4_network_subnet &lhs, const ipv4_network_subnet &rhs) noexcept |
| bool | operator< (const ipv4_network_subnet &lhs, const ipv4_network_subnet &rhs) noexcept |
| bool | operator<= (const ipv4_network_subnet &lhs, const ipv4_network_subnet &rhs) noexcept |
| bool | operator> (const ipv4_network_subnet &lhs, const ipv4_network_subnet &rhs) noexcept |
| bool | operator>= (const ipv4_network_subnet &lhs, const ipv4_network_subnet &rhs) noexcept |
| bool | operator== (const ipv6_network_address &lhs, const ipv6_network_address &rhs) noexcept |
| bool | operator!= (const ipv6_network_address &lhs, const ipv6_network_address &rhs) noexcept |
| bool | operator< (const ipv6_network_address &lhs, const ipv6_network_address &rhs) noexcept |
| bool | operator<= (const ipv6_network_address &lhs, const ipv6_network_address &rhs) noexcept |
| bool | operator> (const ipv6_network_address &lhs, const ipv6_network_address &rhs) noexcept |
| bool | operator>= (const ipv6_network_address &lhs, const ipv6_network_address &rhs) noexcept |
| bool | operator== (const network_address &lhs, const network_address &rhs) |
| bool | operator!= (const network_address &lhs, const network_address &rhs) |
| bool | operator< (const network_address &lhs, const network_address &rhs) |
| bool | operator<= (const network_address &lhs, const network_address &rhs) |
| bool | operator> (const network_address &lhs, const network_address &rhs) |
| bool | operator>= (const network_address &lhs, const network_address &rhs) |
| std::string | print_connection_context (const connection_context_base &ctx) |
| std::string | print_connection_context_short (const connection_context_base &ctx) |
| MAKE_LOGGABLE (connection_context_base, ct, os) | |
| template<class t_request , class t_response , class t_transport > | |
| bool | invoke_http_json (const boost::string_ref uri, const t_request &out_struct, t_response &result_struct, t_transport &transport, std::chrono::milliseconds timeout=std::chrono::seconds(15), const boost::string_ref method="POST") |
| template<class t_request , class t_response , class t_transport > | |
| bool | invoke_http_bin (const boost::string_ref uri, const t_request &out_struct, t_response &result_struct, t_transport &transport, std::chrono::milliseconds timeout=std::chrono::seconds(15), const boost::string_ref method="POST") |
| template<class t_request , class t_response , class t_transport > | |
| bool | invoke_http_json_rpc (const boost::string_ref uri, std::string method_name, const t_request &out_struct, t_response &result_struct, epee::json_rpc::error &error_struct, t_transport &transport, std::chrono::milliseconds timeout=std::chrono::seconds(15), const boost::string_ref http_method="POST", const std::string &req_id="0") |
| template<class t_request , class t_response , class t_transport > | |
| bool | invoke_http_json_rpc (const boost::string_ref uri, std::string method_name, const t_request &out_struct, t_response &result_struct, t_transport &transport, std::chrono::milliseconds timeout=std::chrono::seconds(15), const boost::string_ref http_method="POST", const std::string &req_id="0") |
| template<class t_command , class t_transport > | |
| bool | invoke_http_json_rpc (const boost::string_ref uri, typename t_command::request &out_struct, typename t_command::response &result_struct, t_transport &transport, std::chrono::milliseconds timeout=std::chrono::seconds(15), const boost::string_ref http_method="POST", const std::string &req_id="0") |
| template<class t_arg , class t_result , class t_transport > | |
| bool | invoke_remote_command2 (const epee::net_utils::connection_context_base context, int command, const t_arg &out_struct, t_result &result_struct, t_transport &transport) |
| template<class t_result , class t_arg , class callback_t , class t_transport > | |
| bool | async_invoke_remote_command2 (const epee::net_utils::connection_context_base &context, int command, const t_arg &out_struct, t_transport &transport, const callback_t &cb, size_t inv_timeout=LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED) |
| template<class t_arg , class t_transport > | |
| bool | notify_remote_command2 (const typename t_transport::connection_context &context, int command, const t_arg &out_struct, t_transport &transport) |
| template<class t_owner , class t_in_type , class t_out_type , class t_context , class callback_t > | |
| int | buff_to_t_adapter (int command, const epee::span< const uint8_t > in_buff, byte_stream &buff_out, callback_t cb, t_context &context) |
| template<class t_owner , class t_in_type , class t_context , class callback_t > | |
| int | buff_to_t_adapter (t_owner *powner, int command, const epee::span< const uint8_t > in_buff, callback_t cb, t_context &context) |
| static bool | parse_uri_query (const std::string &query, std::list< std::pair< std::string, std::string > > ¶ms) |
| static bool | parse_port (const std::string &port_str, uint64_t &out_port) |
| bool | create_ec_ssl_certificate (EVP_PKEY *&pkey, X509 *&cert, int type) |
| typedef double epee::net_utils::network_MB |
| typedef double epee::net_utils::network_speed_bps |
| typedef double epee::net_utils::network_speed_kbps |
| typedef double epee::net_utils::network_time_seconds |
|
strong |
|
strong |
|
strong |
|
strong |
| bool epee::net_utils::async_invoke_remote_command2 | ( | const epee::net_utils::connection_context_base & | context, |
| int | command, | ||
| const t_arg & | out_struct, | ||
| t_transport & | transport, | ||
| const callback_t & | cb, | ||
| size_t | inv_timeout = LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED |
||
| ) |
| int epee::net_utils::buff_to_t_adapter | ( | int | command, |
| const epee::span< const uint8_t > | in_buff, | ||
| byte_stream & | buff_out, | ||
| callback_t | cb, | ||
| t_context & | context | ||
| ) |
| int epee::net_utils::buff_to_t_adapter | ( | t_owner * | powner, |
| int | command, | ||
| const epee::span< const uint8_t > | in_buff, | ||
| callback_t | cb, | ||
| t_context & | context | ||
| ) |
| epee::net_utils::catch | ( | const std::exception & | e | ) |
| epee::net_utils::catch | ( | ... | ) |
| std::string epee::net_utils::conver_to_url_format | ( | const std::string & | uri | ) |
| std::string epee::net_utils::convert | ( | char | val | ) |
| std::string epee::net_utils::convert_from_url_format | ( | const std::string & | uri | ) |
| std::string epee::net_utils::convert_to_url_format_force_all | ( | const std::string & | uri | ) |
| bool epee::net_utils::create_ec_ssl_certificate | ( | EVP_PKEY *& | pkey, |
| X509 *& | cert | ||
| ) |
| bool epee::net_utils::create_ec_ssl_certificate | ( | EVP_PKEY *& | pkey, |
| X509 *& | cert, | ||
| int | type | ||
| ) |
| bool epee::net_utils::create_rsa_ssl_certificate | ( | EVP_PKEY *& | pkey, |
| X509 *& | cert | ||
| ) |
| std::string epee::net_utils::dec_to_hex | ( | char | num, |
| int | radix | ||
| ) |
|
inline |
| int epee::net_utils::get_index | ( | const char * | s, |
| char | c | ||
| ) |
| constexpr size_t epee::net_utils::get_ssl_magic_size | ( | ) |
|
inline |
| std::string epee::net_utils::hex_to_dec_2bytes | ( | const char * | s | ) |
| bool epee::net_utils::invoke_http_bin | ( | const boost::string_ref | uri, |
| const t_request & | out_struct, | ||
| t_response & | result_struct, | ||
| t_transport & | transport, | ||
| std::chrono::milliseconds | timeout = std::chrono::seconds(15), |
||
| const boost::string_ref | method = "POST" |
||
| ) |
| bool epee::net_utils::invoke_http_json | ( | const boost::string_ref | uri, |
| const t_request & | out_struct, | ||
| t_response & | result_struct, | ||
| t_transport & | transport, | ||
| std::chrono::milliseconds | timeout = std::chrono::seconds(15), |
||
| const boost::string_ref | method = "POST" |
||
| ) |
| bool epee::net_utils::invoke_http_json_rpc | ( | const boost::string_ref | uri, |
| std::string | method_name, | ||
| const t_request & | out_struct, | ||
| t_response & | result_struct, | ||
| epee::json_rpc::error & | error_struct, | ||
| t_transport & | transport, | ||
| std::chrono::milliseconds | timeout = std::chrono::seconds(15), |
||
| const boost::string_ref | http_method = "POST", |
||
| const std::string & | req_id = "0" |
||
| ) |
| bool epee::net_utils::invoke_http_json_rpc | ( | const boost::string_ref | uri, |
| std::string | method_name, | ||
| const t_request & | out_struct, | ||
| t_response & | result_struct, | ||
| t_transport & | transport, | ||
| std::chrono::milliseconds | timeout = std::chrono::seconds(15), |
||
| const boost::string_ref | http_method = "POST", |
||
| const std::string & | req_id = "0" |
||
| ) |
| bool epee::net_utils::invoke_http_json_rpc | ( | const boost::string_ref | uri, |
| typename t_command::request & | out_struct, | ||
| typename t_command::response & | result_struct, | ||
| t_transport & | transport, | ||
| std::chrono::milliseconds | timeout = std::chrono::seconds(15), |
||
| const boost::string_ref | http_method = "POST", |
||
| const std::string & | req_id = "0" |
||
| ) |
| bool epee::net_utils::invoke_remote_command2 | ( | const epee::net_utils::connection_context_base | context, |
| int | command, | ||
| const t_arg & | out_struct, | ||
| t_result & | result_struct, | ||
| t_transport & | transport | ||
| ) |
| bool epee::net_utils::is_unsafe | ( | unsigned char | compare_char | ) |
|
inline |
| bool epee::net_utils::notify_remote_command2 | ( | const typename t_transport::connection_context & | context, |
| int | command, | ||
| const t_arg & | out_struct, | ||
| t_transport & | transport | ||
| ) |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
static |
| bool epee::net_utils::parse_uri | ( | const std::string | uri, |
| http::uri_content & | content | ||
| ) |
|
static |
| bool epee::net_utils::parse_url | ( | const std::string | url_str, |
| http::url_content & | content | ||
| ) |
| bool epee::net_utils::parse_url_ipv6 | ( | const std::string | url_str, |
| http::url_content & | content | ||
| ) |
| std::string epee::net_utils::print_connection_context | ( | const connection_context_base & | ctx | ) |
| std::string epee::net_utils::print_connection_context_short | ( | const connection_context_base & | ctx | ) |
| bool epee::net_utils::ssl_support_from_string | ( | ssl_support_t & | ssl, |
| boost::string_ref | s | ||
| ) |
| boost::system::error_code epee::net_utils::store_ssl_keys | ( | boost::asio::ssl::context & | ssl, |
| const boost::filesystem::path & | base | ||
| ) |
Store private key for ssl at base + ".key" unencrypted and certificate for ssl at base + ".crt".
| std::string epee::net_utils::to_string | ( | t_connection_type | type | ) |
|
noexcept |
zone enum of value or zone::invalid on error.
1.8.14