src/kademlia/routing_table.cpp
// TODO: 2 use the non deprecated function instead of this one
2 use the non deprecated function instead of this one
2 use the non deprecated function instead of this one
void routing_table::status(session_status& s) const
{
	int ignore;
	boost::tie(s.dht_nodes, s.dht_node_cache, ignore) = size();
	s.dht_global_nodes = num_global_nodes();
	for (table_t::const_iterator i = m_buckets.begin()
		, end(m_buckets.end()); i != end; ++i)
	{
		dht_routing_bucket b;
		b.num_nodes = int(i->live_nodes.size());
		b.num_replacements = int(i->replacements.size());
#ifndef TORRENT_NO_DEPRECATE
		b.last_active = 0;
#endif
		s.dht_routing_table.push_back(b);
	}
}
void routing_table :: status ( session_status & s ) const { int ignore ; boost :: tie ( s . dht_nodes , s . dht_node_cache , ignore ) = size ( ) ; s . dht_global_nodes = num_global_nodes ( ) ; for ( table_t :: const_iterator i = m_buckets . begin ( ) , end ( m_buckets . end ( ) ) ; i != end ; ++ i ) { dht_routing_bucket b ; b . num_nodes = int ( i -> live_nodes . size ( ) ) ; b . num_replacements = int ( i -> replacements . size ( ) ) ; #ifndef TORRENT_NO_DEPRECATE b . last_active = 0 ; #endif s . dht_routing_table . push_back ( b ) ; } }
TODO: 2 use the non deprecated function instead of this one
TODO : 2 use the non deprecated function instead of this one