|
| | node_server (t_payload_net_handler &payload_handler) |
| |
| virtual | ~node_server () |
| |
| bool | run () |
| |
| network_zone & | add_zone (epee::net_utils::zone zone) |
| |
| bool | init (const boost::program_options::variables_map &vm) |
| |
| bool | deinit () |
| |
| bool | send_stop_signal () |
| |
| uint32_t | get_this_peer_port () |
| |
| t_payload_net_handler & | get_payload_object () |
| |
| bool | log_peerlist () |
| |
| bool | log_connections () |
| |
| virtual uint64_t | get_public_connections_count () |
| |
| size_t | get_public_outgoing_connections_count () |
| |
| size_t | get_public_white_peers_count () |
| |
| size_t | get_public_gray_peers_count () |
| |
| void | get_public_peerlist (std::vector< peerlist_entry > &gray, std::vector< peerlist_entry > &white) |
| |
| size_t | get_zone_count () const |
| |
| void | change_max_out_public_peers (size_t count) |
| |
| void | change_max_in_public_peers (size_t count) |
| |
| virtual bool | block_host (const epee::net_utils::network_address &adress, time_t seconds=P2P_IP_BLOCKTIME) |
| |
| virtual bool | unblock_host (const epee::net_utils::network_address &address) |
| |
| virtual std::map< std::string, time_t > | get_blocked_hosts () |
| |
| virtual void | add_used_stripe_peer (const typename t_payload_net_handler::connection_context &context) |
| |
| virtual void | remove_used_stripe_peer (const typename t_payload_net_handler::connection_context &context) |
| |
| virtual void | clear_used_stripe_peers () |
| |
| void | set_save_graph (bool save_graph) |
| |
| void | set_rpc_port (uint16_t rpc_port) |
| |
Public Member Functions inherited from epee::levin::levin_commands_handler< p2p_connection_context_t< t_payload_net_handler::connection_context > > |
| virtual int | invoke (int command, const epee::span< const uint8_t > in_buff, std::string &buff_out, p2p_connection_context_t< t_payload_net_handler::connection_context > &context)=0 |
| |
| virtual int | notify (int command, const epee::span< const uint8_t > in_buff, p2p_connection_context_t< t_payload_net_handler::connection_context > &context)=0 |
| |
| virtual void | callback (p2p_connection_context_t< t_payload_net_handler::connection_context > &context) |
| |
| virtual void | on_connection_new (p2p_connection_context_t< t_payload_net_handler::connection_context > &context) |
| |
| virtual void | on_connection_close (p2p_connection_context_t< t_payload_net_handler::connection_context > &context) |
| |
| virtual | ~levin_commands_handler () |
| |
| virtual void | for_each_connection (std::function< bool(t_payload_net_handler::connection_context &, peerid_type, uint32_t)> f)=0 |
| |
| virtual bool | for_connection (const boost::uuids::uuid &, std::function< bool(t_payload_net_handler::connection_context &, peerid_type, uint32_t)> f)=0 |
| |
| virtual void | add_used_stripe_peer (const t_payload_net_handler::connection_context &context)=0 |
| |
| virtual void | remove_used_stripe_peer (const t_payload_net_handler::connection_context &context)=0 |
| |
template<class t_payload_net_handler>
class nodetool::node_server< t_payload_net_handler >
Definition at line 117 of file net_node.h.