GNUNET_SCHEDULER_cancel (timeout_tid);
}
+
static void
timeout_task (void *cls)
{
GNUNET_SCHEDULER_shutdown ();
}
+
/*
* The function is called every time the topology of connected
* peers to a peer changes.
if (p_ctx->connections < value)
p_ctx->connections = value;
- if ((THRESHOLD <= value)&&(GNUNET_NO == p_ctx->reported))
+ if ((THRESHOLD <= value) && (GNUNET_NO == p_ctx->reported))
{
p_ctx->reported = GNUNET_YES;
checked_peers++;
return GNUNET_YES;
}
+
static void *
ca_statistics (void *cls,
const struct GNUNET_CONFIGURATION_Handle *cfg)
"call to GNUNET_STATISTICS_watch() failed\n");
}
+
static void
notify_connect_complete (void *cls,
struct GNUNET_TESTBED_Operation *op,
connect_left--;
}
+
static void
do_connect (void *cls,
struct GNUNET_TESTBED_RunHandle *h,
return (GNUNET_OK != result) ? 1 : 0;
}
+
/* end of test_gnunet_daemon_topology.c */