aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/test_mesh_small.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-09-02 19:59:58 +0000
committerBart Polot <bart@net.in.tum.de>2011-09-02 19:59:58 +0000
commit0ee1339afc5c5e1105e234b6840c87df58a01f2c (patch)
tree64329e69e58ac66fa38f425eccf8ebebb13f1dd9 /src/mesh/test_mesh_small.c
parente1fda8a5d8674328afa61cc50842fdbd2a7044ba (diff)
downloadgnunet-0ee1339afc5c5e1105e234b6840c87df58a01f2c.tar.gz
gnunet-0ee1339afc5c5e1105e234b6840c87df58a01f2c.zip
Changes in API, adapted code and testfiles, improved client reconnect, new documentation, small fixes
Diffstat (limited to 'src/mesh/test_mesh_small.c')
-rw-r--r--src/mesh/test_mesh_small.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index 53f00a24f..2cd74d6ef 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -204,7 +204,7 @@ static struct GNUNET_MESH_MessageHandler handlers[] = {
204 */ 204 */
205static void 205static void
206tunnel_cleaner (void *cls, const struct GNUNET_MESH_Tunnel *tunnel, 206tunnel_cleaner (void *cls, const struct GNUNET_MESH_Tunnel *tunnel,
207 void **tunnel_ctx) 207 void *tunnel_ctx)
208{ 208{
209#if VERBOSE 209#if VERBOSE
210 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "tunnel disconnected\n"); 210 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "tunnel disconnected\n");
@@ -263,12 +263,13 @@ connect_mesh_service (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
263 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 263 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
264 "connecting to mesh service of peer %s\n", GNUNET_i2s (&d->id)); 264 "connecting to mesh service of peer %s\n", GNUNET_i2s (&d->id));
265#endif 265#endif
266 h = GNUNET_MESH_connect (d->cfg, 10, NULL, &tunnel_cleaner, handlers, &app); 266 h = GNUNET_MESH_connect (d->cfg, 10, NULL, NULL, &tunnel_cleaner, handlers,
267 &app);
267#if VERBOSE 268#if VERBOSE
268 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "connected to mesh service of peer %s\n", 269 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "connected to mesh service of peer %s\n",
269 GNUNET_i2s (&d->id)); 270 GNUNET_i2s (&d->id));
270#endif 271#endif
271 t = GNUNET_MESH_tunnel_create (h, &ch, &dh, NULL); 272 t = GNUNET_MESH_tunnel_create (h, NULL, &ch, &dh, NULL);
272 GNUNET_MESH_tunnel_destroy (t); 273 GNUNET_MESH_tunnel_destroy (t);
273 GNUNET_MESH_disconnect (h); 274 GNUNET_MESH_disconnect (h);
274} 275}