- doc
[oweals/gnunet.git] / src / mesh / gnunet-service-mesh.c
index b4df7cb4812ffd166eaae47abc621a3e464cb3fc..044ab99dad9aa3a7acfc40462c27376e7665587c 100644 (file)
@@ -52,6 +52,7 @@
 #include "gnunet-service-mesh_tunnel.h"
 #include "gnunet-service-mesh_dht.h"
 #include "gnunet-service-mesh_peer.h"
+#include "gnunet-service-mesh_hello.h"
 
 
 /******************************************************************************/
@@ -107,9 +108,10 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   shutting_down = GNUNET_YES;
 
   GML_shutdown ();
-  GMD_shutdown ();
+  GMH_shutdown ();
   GMC_shutdown ();
   GMT_shutdown ();
+  GMD_shutdown ();
   GMP_shutdown ();
 
   GNUNET_STATISTICS_destroy (stats, GNUNET_NO);
@@ -142,10 +144,11 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
   GNUNET_CRYPTO_eddsa_key_get_public (my_private_key, &my_full_id.public_key);
   myid = GNUNET_PEER_intern (&my_full_id);
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-              "Mesh for peer [%s] starting\n",
+              "STARTING SERVICE (MESH) for peer [%s]\n",
               GNUNET_i2s (&my_full_id));
 
   GML_init (server);    /* Local clients */
+  GMH_init (c);         /* Hellos */
   GMC_init (c);         /* Connections */
   GMP_init (c);         /* Peers */
   GMD_init (c);         /* DHT */