|
Electroneum
|
Namespaces | |
| anonymous_namespace{net_peerlist.cpp} | |
Classes | |
| struct | proxy |
| struct | anonymous_inbound |
| struct | p2p_connection_context_t |
| class | node_server |
| struct | i_p2p_endpoint |
| struct | p2p_endpoint_stub |
| struct | peerlist_join |
| struct | peerlist_types |
| class | peerlist_storage |
| class | peerlist_manager |
| struct | network_address_old |
| struct | peerlist_entry_base |
| struct | anchor_peerlist_entry_base |
| struct | connection_entry_base |
| struct | network_config |
| struct | basic_node_data |
| struct | COMMAND_HANDSHAKE_T |
| struct | COMMAND_TIMED_SYNC_T |
| struct | COMMAND_PING |
Typedefs | |
| typedef boost::uuids::uuid | uuid |
| typedef boost::uuids::uuid | net_connection_id |
| typedef uint64_t | peerid_type |
| typedef peerlist_entry_base< epee::net_utils::network_address > | peerlist_entry |
| typedef anchor_peerlist_entry_base< epee::net_utils::network_address > | anchor_peerlist_entry |
| typedef connection_entry_base< epee::net_utils::network_address > | connection_entry |
Functions | |
| boost::optional< std::vector< proxy > > | get_proxies (boost::program_options::variables_map const &vm) |
| boost::optional< std::vector< anonymous_inbound > > | get_anonymous_inbounds (boost::program_options::variables_map const &vm) |
| bool | is_filtered_command (const epee::net_utils::network_address &address, int command) |
| boost::optional< boost::asio::ip::tcp::socket > | socks_connect_internal (const std::atomic< bool > &stop_signal, boost::asio::io_service &service, const boost::asio::ip::tcp::endpoint &proxy, const epee::net_utils::network_address &remote) |
| bool | append_net_address (std::vector< epee::net_utils::network_address > &seed_nodes, std::string const &addr, uint16_t default_port) |
| template<typename Archive > | |
| void | serialize (Archive &a, peerlist_types &elem, unsigned ver) |
| template<typename Archive > | |
| void | serialize (Archive &a, peerlist_join elem, unsigned ver) |
| static std::string | peerid_to_string (peerid_type peer_id) |
| std::string | print_peerlist_to_string (const std::vector< peerlist_entry > &pl) |
| crypto::hash | get_proof_of_trust_hash (const nodetool::proof_of_trust &pot) |
Variables | |
| const command_line::arg_descriptor< std::string > | arg_p2p_bind_ip = {"p2p-bind-ip", "Interface for p2p network protocol", "0.0.0.0"} |
| const command_line::arg_descriptor< std::string, false, true, 2 > | arg_p2p_bind_port |
| const command_line::arg_descriptor< uint32_t > | arg_p2p_external_port = {"p2p-external-port", "External port for p2p network protocol (if port forwarding used with NAT)", 0} |
| const command_line::arg_descriptor< bool > | arg_p2p_allow_local_ip = {"allow-local-ip", "Allow local ip add to peer list, mostly in debug purposes"} |
| const command_line::arg_descriptor< std::vector< std::string > > | arg_p2p_add_peer = {"add-peer", "Manually add peer to local peerlist"} |
| const command_line::arg_descriptor< std::vector< std::string > > | arg_p2p_add_priority_node = {"add-priority-node", "Specify list of peers to connect to and attempt to keep the connection open"} |
| const command_line::arg_descriptor< std::vector< std::string > > | arg_p2p_add_exclusive_node |
| const command_line::arg_descriptor< std::vector< std::string > > | arg_p2p_seed_node = {"seed-node", "Connect to a node to retrieve peer addresses, and disconnect"} |
| const command_line::arg_descriptor< std::vector< std::string > > | arg_proxy = {"proxy", "<network-type>,<socks-ip:port>[,max_connections] i.e. \"tor,127.0.0.1:9050,100\""} |
| const command_line::arg_descriptor< std::vector< std::string > > | arg_anonymous_inbound = {"anonymous-inbound", "<hidden-service-address>,<[bind-ip:]port>[,max_connections] i.e. \"x.onion,127.0.0.1:18083,100\""} |
| const command_line::arg_descriptor< bool > | arg_p2p_hide_my_port = {"hide-my-port", "Do not announce yourself as peerlist candidate", false, true} |
| const command_line::arg_descriptor< bool > | arg_no_sync = {"no-sync", "Don't synchronize the blockchain with other peers", false} |
| const command_line::arg_descriptor< bool > | arg_no_igd = {"no-igd", "Disable UPnP port mapping"} |
| const command_line::arg_descriptor< int64_t > | arg_out_peers = {"out-peers", "set max number of out peers", -1} |
| const command_line::arg_descriptor< int64_t > | arg_in_peers = {"in-peers", "set max number of in peers", -1} |
| const command_line::arg_descriptor< int > | arg_tos_flag = {"tos-flag", "set TOS flag", -1} |
| const command_line::arg_descriptor< int64_t > | arg_limit_rate_up = {"limit-rate-up", "set limit-rate-up [kB/s]", P2P_DEFAULT_LIMIT_RATE_UP} |
| const command_line::arg_descriptor< int64_t > | arg_limit_rate_down = {"limit-rate-down", "set limit-rate-down [kB/s]", P2P_DEFAULT_LIMIT_RATE_DOWN} |
| const command_line::arg_descriptor< int64_t > | arg_limit_rate = {"limit-rate", "set limit-rate [kB/s]", -1} |
| const command_line::arg_descriptor< bool > | arg_save_graph = {"save-graph", "Save data for dr electroneum", false} |
| const int64_t | default_limit_up = P2P_DEFAULT_LIMIT_RATE_UP |
| const int64_t | default_limit_down = P2P_DEFAULT_LIMIT_RATE_DOWN |
| const command_line::arg_descriptor< bool > | arg_offline |
| typedef anchor_peerlist_entry_base<epee::net_utils::network_address> nodetool::anchor_peerlist_entry |
| typedef connection_entry_base<epee::net_utils::network_address> nodetool::connection_entry |
| typedef boost::uuids::uuid nodetool::net_connection_id |
| typedef uint64_t nodetool::peerid_type |
| typedef peerlist_entry_base<epee::net_utils::network_address> nodetool::peerlist_entry |
| typedef boost::uuids::uuid nodetool::uuid |
|
inline |
| boost::optional< std::vector< anonymous_inbound > > nodetool::get_anonymous_inbounds | ( | boost::program_options::variables_map const & | vm | ) |
|
inline |
| boost::optional< std::vector< proxy > > nodetool::get_proxies | ( | boost::program_options::variables_map const & | vm | ) |
| bool nodetool::is_filtered_command | ( | epee::net_utils::network_address const & | address, |
| int | command | ||
| ) |
commnd is filtered (ignored/dropped) for address
|
inlinestatic |
|
inline |
| void nodetool::serialize | ( | Archive & | a, |
| peerlist_join | elem, | ||
| unsigned | ver | ||
| ) |
| void nodetool::serialize | ( | Archive & | a, |
| peerlist_types & | elem, | ||
| unsigned | ver | ||
| ) |
| boost::optional< boost::asio::ip::tcp::socket > nodetool::socks_connect_internal | ( | const std::atomic< bool > & | stop_signal, |
| boost::asio::io_service & | service, | ||
| const boost::asio::ip::tcp::endpoint & | proxy, | ||
| const epee::net_utils::network_address & | remote | ||
| ) |
| const command_line::arg_descriptor< std::vector< std::string > > nodetool::arg_anonymous_inbound = {"anonymous-inbound", "<hidden-service-address>,<[bind-ip:]port>[,max_connections] i.e. \"x.onion,127.0.0.1:18083,100\""} |
| const command_line::arg_descriptor< int64_t > nodetool::arg_in_peers = {"in-peers", "set max number of in peers", -1} |
| const command_line::arg_descriptor< int64_t > nodetool::arg_limit_rate = {"limit-rate", "set limit-rate [kB/s]", -1} |
| const command_line::arg_descriptor< int64_t > nodetool::arg_limit_rate_down = {"limit-rate-down", "set limit-rate-down [kB/s]", P2P_DEFAULT_LIMIT_RATE_DOWN} |
| const command_line::arg_descriptor< int64_t > nodetool::arg_limit_rate_up = {"limit-rate-up", "set limit-rate-up [kB/s]", P2P_DEFAULT_LIMIT_RATE_UP} |
| const command_line::arg_descriptor< bool > nodetool::arg_no_igd = {"no-igd", "Disable UPnP port mapping"} |
| const command_line::arg_descriptor< bool > nodetool::arg_no_sync = {"no-sync", "Don't synchronize the blockchain with other peers", false} |
|
extern |
| const command_line::arg_descriptor< int64_t > nodetool::arg_out_peers = {"out-peers", "set max number of out peers", -1} |
| const command_line::arg_descriptor< std::vector< std::string > > nodetool::arg_p2p_add_exclusive_node |
| const command_line::arg_descriptor< std::vector< std::string > > nodetool::arg_p2p_add_peer = {"add-peer", "Manually add peer to local peerlist"} |
| const command_line::arg_descriptor< std::vector< std::string > > nodetool::arg_p2p_add_priority_node = {"add-priority-node", "Specify list of peers to connect to and attempt to keep the connection open"} |
| const command_line::arg_descriptor< bool > nodetool::arg_p2p_allow_local_ip = {"allow-local-ip", "Allow local ip add to peer list, mostly in debug purposes"} |
| const command_line::arg_descriptor< std::string > nodetool::arg_p2p_bind_ip = {"p2p-bind-ip", "Interface for p2p network protocol", "0.0.0.0"} |
| const command_line::arg_descriptor< std::string, false, true, 2 > nodetool::arg_p2p_bind_port |
| const command_line::arg_descriptor< uint32_t > nodetool::arg_p2p_external_port = {"p2p-external-port", "External port for p2p network protocol (if port forwarding used with NAT)", 0} |
| const command_line::arg_descriptor< bool > nodetool::arg_p2p_hide_my_port = {"hide-my-port", "Do not announce yourself as peerlist candidate", false, true} |
| const command_line::arg_descriptor< std::vector< std::string > > nodetool::arg_p2p_seed_node = {"seed-node", "Connect to a node to retrieve peer addresses, and disconnect"} |
| const command_line::arg_descriptor< std::vector< std::string > > nodetool::arg_proxy = {"proxy", "<network-type>,<socks-ip:port>[,max_connections] i.e. \"tor,127.0.0.1:9050,100\""} |
| const command_line::arg_descriptor< bool > nodetool::arg_save_graph = {"save-graph", "Save data for dr electroneum", false} |
| const command_line::arg_descriptor< int > nodetool::arg_tos_flag = {"tos-flag", "set TOS flag", -1} |
| const int64_t nodetool::default_limit_down = P2P_DEFAULT_LIMIT_RATE_DOWN |
| const int64_t nodetool::default_limit_up = P2P_DEFAULT_LIMIT_RATE_UP |