gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r32086 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r32086 - gnunet/src/mesh
Date: Thu, 30 Jan 2014 03:11:18 +0100

Author: bartpolot
Date: 2014-01-30 03:11:18 +0100 (Thu, 30 Jan 2014)
New Revision: 32086

Modified:
   gnunet/src/mesh/gnunet-mesh.c
Log:
- show connections and channels on stdout

Modified: gnunet/src/mesh/gnunet-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-mesh.c       2014-01-30 02:11:17 UTC (rev 32085)
+++ gnunet/src/mesh/gnunet-mesh.c       2014-01-30 02:11:18 UTC (rev 32086)
@@ -513,11 +513,17 @@
                  unsigned int estate,
                  unsigned int cstate)
 {
+  unsigned int i;
+
   if (NULL != peer)
   {
     FPRINTF (stdout, "Tunnel %s\n", GNUNET_i2s_full (peer));
     FPRINTF (stdout, "- %u channels\n", n_channels);
+    for (i = 0; i < n_channels; i++)
+      FPRINTF (stdout, "   %u\n", channels[i]);
     FPRINTF (stdout, "- %u connections\n", n_connections);
+    for (i = 0; i < n_connections; i++)
+      FPRINTF (stdout, "   %s\n", GNUNET_h2s_full (&connections[i]));
     FPRINTF (stdout, "- enc state: %u\n", estate);
     FPRINTF (stdout, "- con state: %u\n", cstate);
   }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]