*/
#include "platform.h"
#include "gnunet_testing_lib.h"
-#include "gnunet_mesh_service_new.h"
+#include "gnunet_mesh_service.h"
#define VERBOSE GNUNET_YES
#define REMOVE_DIR GNUNET_YES
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "***************** test: test_task\n");
if (test == MULTICAST)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "***************** test: add peer 3\n");
GNUNET_MESH_peer_request_connect_add(t, &d3->id);
}
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "***************** test: add peer 2\n");
GNUNET_MESH_peer_request_connect_add(t, &d2->id);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "***************** test: schedule timeout in 30s\n");
if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
{
GNUNET_SCHEDULER_cancel (disconnect_task);
peers_running = GNUNET_TESTING_daemons_running (pg);
for (i = 0; i < num_peers; i++)
{
+ GNUNET_PEER_Id peer_id;
+
d1 = GNUNET_TESTING_daemon_get (pg, i);
+ peer_id = GNUNET_PEER_intern(&d1->id);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"***************** test: %u: %s\n",
- GNUNET_PEER_intern(&d1->id),
+ peer_id,
GNUNET_i2s (&d1->id));
}
d1 = GNUNET_TESTING_daemon_get (pg, 0);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"***************** test: Problem with new connection (%s)\n",
emsg);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "***************** test: (%s)\n",
+ GNUNET_i2s (first));
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "***************** test: (%s)\n",
+ GNUNET_i2s (second));
}
}
return;
}
- mesh_peers = GNUNET_malloc (sizeof(GNUNET_PEER_Id) * (num_peers + 1));
+ mesh_peers = GNUNET_malloc (sizeof(uint16_t) * (num_peers + 1));
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_number (testing_cfg, "test_mesh_small",