|
|
@ -118,7 +118,7 @@ namespace nodetool
|
|
|
|
virtual uint64_t get_connections_count();
|
|
|
|
virtual uint64_t get_connections_count();
|
|
|
|
size_t get_outgoing_connections_count();
|
|
|
|
size_t get_outgoing_connections_count();
|
|
|
|
peerlist_manager& get_peerlist_manager(){return m_peerlist;}
|
|
|
|
peerlist_manager& get_peerlist_manager(){return m_peerlist;}
|
|
|
|
void delete_connections(size_t count);
|
|
|
|
void delete_out_connections(size_t count);
|
|
|
|
virtual bool block_host(const epee::net_utils::network_address &adress, time_t seconds = P2P_IP_BLOCKTIME);
|
|
|
|
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 bool unblock_host(const epee::net_utils::network_address &address);
|
|
|
|
virtual std::map<std::string, time_t> get_blocked_hosts() { CRITICAL_REGION_LOCAL(m_blocked_hosts_lock); return m_blocked_hosts; }
|
|
|
|
virtual std::map<std::string, time_t> get_blocked_hosts() { CRITICAL_REGION_LOCAL(m_blocked_hosts_lock); return m_blocked_hosts; }
|
|
|
|