Michael Mckeown
2016-08-22 07:49:23 UTC
settings_pack::dht_bootstrap_node is not a member of settings pack.
frozen till the process is manually terminated.
------------------------------------------------------------------------------
std::vector<stats_metric> map = session_stats_metrics ( );
for ( std::vector<stats_metric>::const_iterator i = map.begin ( );
i != map.end ( ); ++i )
{
if ( i->name == "peer.num_peers_connected" )
{
statistics.num_peers_connected = i->value_index;
#ifdef DEBUG_CONSOLE
std::cout << "Map: " << i->name << " " << i->value_index
<< "\n";
#endif
}
if ( i->name == "dht.dht_nodes" )
{
statistics.dht_nodes = i->value_index;
#ifdef DEBUG_CONSOLE
std::cout << "Map: " << i->name << " " << i->value_index
<< "\n";
#endif
}
if ( i->name == "dht.dht_peers" )
{
statistics.dht_peers = i->value_index;
#ifdef DEBUG_CONSOLE
std::cout << "Map: " << i->name << " " << i->value_index
<< "\n";
#endif
}
if ( i->name == "net.sent_payload_bytes" )
{
statistics.sent_payload_bytes = i->value_index;
#ifdef DEBUG_CONSOLE
std::cout << "Map: " << i->name << " " << i->value_index
<< "\n";
#endif
}
if ( i->name == "net.recv_payload_bytes" )
{
statistics.recv_payload_bytes = i->value_index;
#ifdef DEBUG_CONSOLE
std::cout << "Map: " << i->name << " " << i->value_index
<< "\n";
#endif
}
if ( i->name == "net.has_incoming_connections" )
{
statistics.has_incoming_connections = i->value_index;
#ifdef DEBUG_CONSOLE
std::cout << "Map: " << i->name << " " << i->value_index
<< "\n";
#endif
}
}
after dht.dht_peers is in the loop libtorrent just hangs and remainsfor ( std::vector<stats_metric>::const_iterator i = map.begin ( );
i != map.end ( ); ++i )
{
if ( i->name == "peer.num_peers_connected" )
{
statistics.num_peers_connected = i->value_index;
#ifdef DEBUG_CONSOLE
std::cout << "Map: " << i->name << " " << i->value_index
<< "\n";
#endif
}
if ( i->name == "dht.dht_nodes" )
{
statistics.dht_nodes = i->value_index;
#ifdef DEBUG_CONSOLE
std::cout << "Map: " << i->name << " " << i->value_index
<< "\n";
#endif
}
if ( i->name == "dht.dht_peers" )
{
statistics.dht_peers = i->value_index;
#ifdef DEBUG_CONSOLE
std::cout << "Map: " << i->name << " " << i->value_index
<< "\n";
#endif
}
if ( i->name == "net.sent_payload_bytes" )
{
statistics.sent_payload_bytes = i->value_index;
#ifdef DEBUG_CONSOLE
std::cout << "Map: " << i->name << " " << i->value_index
<< "\n";
#endif
}
if ( i->name == "net.recv_payload_bytes" )
{
statistics.recv_payload_bytes = i->value_index;
#ifdef DEBUG_CONSOLE
std::cout << "Map: " << i->name << " " << i->value_index
<< "\n";
#endif
}
if ( i->name == "net.has_incoming_connections" )
{
statistics.has_incoming_connections = i->value_index;
#ifdef DEBUG_CONSOLE
std::cout << "Map: " << i->name << " " << i->value_index
<< "\n";
#endif
}
}
frozen till the process is manually terminated.
------------------------------------------------------------------------------