|
Electroneum
|
Namespaces | |
| http | |
| jsonrpc2 | |
| munin | |
| smtp | |
Classes | |
| class | abstract_tcp_server |
| class | async_blocked_mode_client |
| 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 |
| class | content_encoding_gzip |
| class | cp_server_impl |
| struct | direct_connect |
| class | do_nothing_sub_handler |
| struct | i_connection_filter |
| class | i_network_throttle |
| struct | i_protocol_handler |
| struct | i_service_endpoint |
| struct | i_sub_handler |
| struct | i_target_handler |
| class | ipv4_network_address |
| class | network_address |
| class | network_throttle |
| struct | network_throttle_bw |
| class | network_throttle_manager |
| struct | protocl_switcher_config |
| class | protocol_switcher |
| class | soket_sender |
| struct | ssl_authentication_t |
| class | ssl_options_t |
| class | t_protocol_handler |
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 | |
| PRAGMA_WARNING_POP bool | worker_thread_member () |
| bool | add_new_connection (SOCKET new_sock, long ip_from, int port_from) |
| bool | shutdown_connection (connection< TProtocol > *pconn) |
| 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 | http_ssl_invoke (const std::string &url, const std::string usr, const std::string psw, std::string &http_response_body, bool use_post=false) |
| bool | is_ip_local (uint32_t ip) |
| bool | is_ip_loopback (uint32_t ip) |
| bool | parse_uri_query (const std::string &query, std::list< std::pair< std::string, std::string > > ¶ms) |
| bool | parse_uri (const std::string uri, http::uri_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) |
| 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 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="GET") |
| template<class t_response , class t_transport > | |
| bool | get_http_json (const boost::string_ref uri, t_response &result_struct, t_transport &transport, std::chrono::milliseconds timeout=std::chrono::seconds(15), const boost::string_ref method="GET") |
| 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="GET") |
| 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="GET", 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="GET", const std::string &req_id="0") |
| template<class t_arg , class t_result , class t_transport > | |
| bool | invoke_remote_command2 (int command, const t_arg &out_struct, t_result &result_struct, t_transport &transport) |
| template<class t_arg , class t_transport > | |
| bool | notify_remote_command2 (int command, const t_arg &out_struct, t_transport &transport) |
| template<class t_arg , class t_result , class t_transport > | |
| bool | invoke_remote_command2 (boost::uuids::uuid conn_id, 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 (boost::uuids::uuid conn_id, 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 (boost::uuids::uuid conn_id, 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, std::string &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) |
| bool | create_ec_ssl_certificate (EVP_PKEY *&pkey, X509 *&cert, int type) |
Variables | |
| SOCKET | m_listen_socket |
| HANDLE | m_completion_port |
| connections_container | m_connections |
| critical_section | m_connections_lock |
| int | m_port |
| volatile LONG | m_stop |
| bool | m_initialized |
| volatile LONG | m_worker_thread_counter |
| TProtocol::config_type | m_config |
| class epee::net_utils::buffer | resize_send_buff |
| typedef boosted_tcp_server<http::http_custom_handler<> > epee::net_utils::boosted_http_server_custum_handling |
Definition at line 44 of file http_server_cp2.h.
| typedef boosted_tcp_server<http::simple_http_connection_handler<> > epee::net_utils::boosted_http_server_file_system |
Definition at line 43 of file http_server_cp2.h.
| typedef boosted_tcp_server<levin::async_protocol_handler<> > epee::net_utils::boosted_levin_async_server |
Definition at line 41 of file levin_server_cp2.h.
Definition at line 40 of file levin_server_cp2.h.
| typedef boosted_tcp_server<net_utils::protocol_switcher> epee::net_utils::boosted_multiprotocol_server |
Definition at line 41 of file multiprotocols_server.h.
Definition at line 100 of file network_throttle.hpp.
| typedef std::map<SOCKET, boost::shared_ptr<connection<TProtocol> > > epee::net_utils::connections_container |
Definition at line 219 of file abstract_tcp_server_cp.h.
Definition at line 44 of file http_server_cp.h.
| typedef cp_server_impl<http::simple_http_connection_handler> epee::net_utils::cp_http_server_file_system |
Definition at line 43 of file http_server_cp.h.
Definition at line 39 of file levin_server_cp.h.
Definition at line 82 of file levin_client.h.
Definition at line 83 of file levin_client.h.
| typedef abstract_tcp_server<http::http_custom_handler> epee::net_utils::mt_http_server_custum_handling |
Definition at line 40 of file http_server_thread_per_connect.h.
| typedef abstract_tcp_server<http::simple_http_connection_handler> epee::net_utils::mt_http_server_file_system |
Definition at line 39 of file http_server_thread_per_connect.h.
| typedef double epee::net_utils::network_MB |
Definition at line 87 of file network_throttle.hpp.
| typedef double epee::net_utils::network_speed_bps |
Definition at line 85 of file network_throttle.hpp.
| typedef double epee::net_utils::network_speed_kbps |
Definition at line 84 of file network_throttle.hpp.
| typedef double epee::net_utils::network_time_seconds |
Definition at line 86 of file network_throttle.hpp.
|
strong |
|
strong |
|
strong |
Definition at line 52 of file net_ssl.h.
| Enumerator | |
|---|---|
| e_connection_type_NET | |
| e_connection_type_RPC | |
| e_connection_type_P2P | |
Definition at line 93 of file connection_basic.hpp.
|
strong |
| bool epee::net_utils::async_invoke_remote_command2 | ( | boost::uuids::uuid | conn_id, |
| int | command, | ||
| const t_arg & | out_struct, | ||
| t_transport & | transport, | ||
| const callback_t & | cb, | ||
| size_t | inv_timeout = LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED |
||
| ) |
Definition at line 113 of file levin_abstract_invoke2.h.

| int epee::net_utils::buff_to_t_adapter | ( | int | command, |
| const epee::span< const uint8_t > | in_buff, | ||
| std::string & | buff_out, | ||
| callback_t | cb, | ||
| t_context & | context | ||
| ) |
Definition at line 172 of file levin_abstract_invoke2.h.

| 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 | ||
| ) |
Definition at line 202 of file levin_abstract_invoke2.h.

| 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 | ||
| ) |
Definition at line 192 of file net_ssl.cpp.
| bool epee::net_utils::create_rsa_ssl_certificate | ( | EVP_PKEY *& | pkey, |
| X509 *& | cert | ||
| ) |
| bool epee::net_utils::get_http_json | ( | const boost::string_ref | uri, |
| t_response & | result_struct, | ||
| t_transport & | transport, | ||
| std::chrono::milliseconds | timeout = std::chrono::seconds(15), |
||
| const boost::string_ref | method = "GET" |
||
| ) |
Definition at line 73 of file http_abstract_invoke.h.


| constexpr size_t epee::net_utils::get_ssl_magic_size | ( | ) |
|
inline |
Definition at line 43 of file http_client_via_api_helper.h.

| 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 = "GET" |
||
| ) |
Definition at line 109 of file http_abstract_invoke.h.


| 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 = "GET" |
||
| ) |
Definition at line 41 of file http_abstract_invoke.h.


| 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 = "GET", |
||
| const std::string & | req_id = "0" |
||
| ) |
Definition at line 138 of file http_abstract_invoke.h.


| 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 = "GET", |
||
| const std::string & | req_id = "0" |
||
| ) |
Definition at line 160 of file http_abstract_invoke.h.

| bool epee::net_utils::invoke_remote_command2 | ( | int | command, |
| const t_arg & | out_struct, | ||
| t_result & | result_struct, | ||
| t_transport & | transport | ||
| ) |
Definition at line 43 of file levin_abstract_invoke2.h.

| bool epee::net_utils::invoke_remote_command2 | ( | boost::uuids::uuid | conn_id, |
| int | command, | ||
| const t_arg & | out_struct, | ||
| t_result & | result_struct, | ||
| t_transport & | transport | ||
| ) |
Definition at line 89 of file levin_abstract_invoke2.h.

| bool epee::net_utils::is_ssl | ( | const unsigned char * | data, |
| size_t | len | ||
| ) |
Definition at line 382 of file net_ssl.cpp.

|
inline |
Definition at line 344 of file net_utils_base.h.

| bool epee::net_utils::notify_remote_command2 | ( | int | command, |
| const t_arg & | out_struct, | ||
| t_transport & | transport | ||
| ) |
Definition at line 69 of file levin_abstract_invoke2.h.


| bool epee::net_utils::notify_remote_command2 | ( | boost::uuids::uuid | conn_id, |
| int | command, | ||
| const t_arg & | out_struct, | ||
| t_transport & | transport | ||
| ) |
Definition at line 153 of file levin_abstract_invoke2.h.

|
inlinenoexcept |
Definition at line 99 of file net_utils_base.h.
|
inline |
|
inlinenoexcept |
Definition at line 101 of file net_utils_base.h.
|
inline |
|
inlinenoexcept |
Definition at line 103 of file net_utils_base.h.
|
inline |
|
inlinenoexcept |
Definition at line 97 of file net_utils_base.h.
|
inline |
|
inlinenoexcept |
Definition at line 105 of file net_utils_base.h.
|
inline |
|
inlinenoexcept |
Definition at line 107 of file net_utils_base.h.
|
inline |
|
inline |
Definition at line 98 of file net_parse_helpers.h.


|
inline |
Definition at line 42 of file net_parse_helpers.h.

|
inline |
Definition at line 133 of file net_parse_helpers.h.


| std::string epee::net_utils::print_connection_context | ( | const connection_context_base & | ctx | ) |
Definition at line 59 of file net_utils_base.cpp.

| std::string epee::net_utils::print_connection_context_short | ( | const connection_context_base & | ctx | ) |
Definition at line 66 of file net_utils_base.cpp.


| bool epee::net_utils::shutdown_connection | ( | connection< TProtocol > * | pconn | ) |
| bool epee::net_utils::ssl_support_from_string | ( | ssl_support_t & | ssl, |
| boost::string_ref | s | ||
| ) |
Definition at line 516 of file net_ssl.cpp.
| std::string epee::net_utils::to_string | ( | t_connection_type | type | ) |
| PRAGMA_WARNING_POP bool epee::net_utils::worker_thread_member | ( | ) |
|
noexcept |
zone enum of value or zone::invalid on error. Definition at line 89 of file net_utils_base.cpp.

|
noexcept |
Definition at line 73 of file net_utils_base.cpp.

| HANDLE epee::net_utils::m_completion_port |
Definition at line 221 of file abstract_tcp_server_cp.h.
| TProtocol::config_type epee::net_utils::m_config |
Definition at line 229 of file abstract_tcp_server_cp.h.
| connections_container epee::net_utils::m_connections |
Definition at line 222 of file abstract_tcp_server_cp.h.
| critical_section epee::net_utils::m_connections_lock |
Definition at line 223 of file abstract_tcp_server_cp.h.
| bool epee::net_utils::m_initialized |
Definition at line 227 of file abstract_tcp_server_cp.h.
| SOCKET epee::net_utils::m_listen_socket |
Definition at line 220 of file abstract_tcp_server_cp.h.
| int epee::net_utils::m_port |
Definition at line 224 of file abstract_tcp_server_cp.h.
| volatile LONG epee::net_utils::m_stop |
Definition at line 225 of file abstract_tcp_server_cp.h.
| volatile LONG epee::net_utils::m_worker_thread_counter |
Definition at line 228 of file abstract_tcp_server_cp.h.
| class epee::net_utils::buffer epee::net_utils::resize_send_buff |