#include "gnunet_core_service.h"
#include "gnunet_program_lib.h"
+#define VERBOSE 0
static int no_resolve;
+#if VERBOSE
+ static unsigned int peer_count;
+#endif
static const struct GNUNET_CONFIGURATION_Handle *cfg;
{
#if VERBOSE
fprintf(stderr, "Learned about peer %s\n", GNUNET_i2s(peer));
+ peer_count++;
#endif
pc = GNUNET_malloc (sizeof (struct PrintContext));
pc->peer = *peer;
GNUNET_TIME_UNIT_MINUTES,
&process_resolved_address, pc);
}
+#if VERBOSE
+ else
+ {
+ fprintf(stderr, "Counted %u total connected peers.\n", peer_count);
+ }
+#endif
}