aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/multicast/test_multicast_multipeer.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/multicast/test_multicast_multipeer.c b/src/multicast/test_multicast_multipeer.c
index 792b49c49..e81b63f92 100644
--- a/src/multicast/test_multicast_multipeer.c
+++ b/src/multicast/test_multicast_multipeer.c
@@ -240,6 +240,8 @@ multicast_ca1 (void *cls,
240 GNUNET_CRYPTO_ecdsa_key_get_public (member_key, &member_pub_key); 240 GNUNET_CRYPTO_ecdsa_key_get_public (member_key, &member_pub_key);
241 241
242 // Get GNUnet identity of origin 242 // Get GNUnet identity of origin
243 // FIXME: the return value is not a GNUNET_PeerIdentity, it can retrieved in
244 // pi_cb: pinfo->result.id
243 peer_id_origin = GNUNET_TESTBED_peer_get_information (peers[0], 245 peer_id_origin = GNUNET_TESTBED_peer_get_information (peers[0],
244 GNUNET_TESTBED_PIT_IDENTITY, 246 GNUNET_TESTBED_PIT_IDENTITY,
245 pi_cb, 247 pi_cb,
@@ -370,6 +372,16 @@ testbed_master (void *cls,
370 372
371 peers = p; 373 peers = p;
372 374
375 /**
376 * FIXME:
377 * we can't already GNUNET_TESTBED_service_connect here, because in the
378 * continuation callback multicast_ca1 we need the origin's peer identity
379 * which we can retrieve only using the asynchronous
380 * GNUNET_TESTBED_peer_get_information function.
381 * So we need to call GNUNET_TESTBED_peer_get_information here, and call
382 * GNUNET_TESTBED_service_connect in the result callback.
383 */
384
373 /* connect to a peers service */ 385 /* connect to a peers service */
374 op0 = GNUNET_TESTBED_service_connect 386 op0 = GNUNET_TESTBED_service_connect
375 (NULL, /* Closure for operation */ 387 (NULL, /* Closure for operation */