*/
struct BenchmarkState
{
- /* Are we connected to ATS service of all peers: GNUNET_YES/NO */
+ /**
+ * Are we connected to ATS service of all peers: GNUNET_YES/NO
+ */
int connected_ATS_service;
- /* Are we connected to CORE service of all peers: GNUNET_YES/NO */
+ /**
+ * Are we connected to CORE service of all peers: GNUNET_YES/NO
+ */
int connected_COMM_service;
- /* Are we connected to all peers: GNUNET_YES/NO */
+ /**
+ * Are we connected to all peers: GNUNET_YES/NO
+ */
int connected_PEERS;
- /* Are we connected to all slave peers on CORE level: GNUNET_YES/NO */
+ /**
+ * Are we connected to all slave peers on CORE level: GNUNET_YES/NO
+ */
int connected_CORE;
- /* Are we connected to CORE service of all peers: GNUNET_YES/NO */
+ /**
+ * Are we connected to CORE service of all peers: GNUNET_YES/NO
+ */
int benchmarking;
};
+
/**
* Shutdown task
*/
/**
* Array of master peers
*/
-static struct BenchmarkPeer *mps;
+static struct BenchmarkPeer *mps;
/**
* Number slave peers
* failed
*/
static void
-main_run (void *cls, struct GNUNET_TESTBED_RunHandle *h, unsigned int num_peers,
- struct GNUNET_TESTBED_Peer **peers_, unsigned int links_succeeded,
- unsigned int links_failed)
+main_run (void *cls, struct GNUNET_TESTBED_RunHandle *h,
+ unsigned int num_peers,
+ struct GNUNET_TESTBED_Peer **peers_,
+ unsigned int links_succeeded,
+ unsigned int links_failed)
{
int c_m;
int c_s;
mps[c_m].pref_partner = &sps[c_m];
mps[c_m].pref_value = TEST_ATS_PREFRENCE_START;
mps[c_m].partners =
- GNUNET_malloc (num_slaves * sizeof (struct BenchmarkPeer));
+ GNUNET_malloc (num_slaves * sizeof (struct BenchmarkPartner));
mps[c_m].num_partners = num_slaves;
/* Initialize partners */
for (c_s = 0; c_s < num_slaves; c_s++)