in NearbyConnectionsCpp/app/src/main/cpp/NearbyConnection.cpp [684:702]
void Engine::DebugDumpConnections(void) {
LOGI("Play Status Table Contents:");
auto const_it = players_score_.begin();
for (; const_it != players_score_.end(); ++const_it) {
LOGI(
"Player Info: endpoint_id(%s,%d), score(%d), connected(%s), "
"native(%s), host(%s), Finished(%s)",
const_it->first.c_str(), static_cast<int>(const_it->first.size()),
const_it->second.score_, const_it->second.connected_ ? "true" : "false",
const_it->second.is_direct_connection_ ? "true" : "false",
const_it->second.is_host_ ? "true" : "false",
const_it->second.finished_ ? "true" : "false");
if (const_it->second.is_direct_connection_) {
LOGI("Host Endpoint ID = %s",
const_it->second.is_host_ ? "Debug_placeholder_id"
: const_it->second.endpoint_id_.c_str());
}
}
}