gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r4889 - GNUnet/src/applications/traffic


From: gnunet
Subject: [GNUnet-SVN] r4889 - GNUnet/src/applications/traffic
Date: Fri, 1 Jun 2007 23:37:59 -0600 (MDT)

Author: grothoff
Date: 2007-06-01 23:37:59 -0600 (Fri, 01 Jun 2007)
New Revision: 4889

Modified:
   GNUnet/src/applications/traffic/traffic.c
Log:
debug feature

Modified: GNUnet/src/applications/traffic/traffic.c
===================================================================
--- GNUnet/src/applications/traffic/traffic.c   2007-06-02 05:37:45 UTC (rev 
4888)
+++ GNUnet/src/applications/traffic/traffic.c   2007-06-02 05:37:59 UTC (rev 
4889)
@@ -39,6 +39,8 @@
 #include "gnunet_stats_service.h"
 #include "traffic.h"
 
+#define DEBUG 0
+
 /**
  * How many time-units back do we keep the history of?  (must really
  * be <=32 since we use the 32 bit in an unsigned int). The memory
@@ -162,6 +164,9 @@
  */
 static TrafficCounter ** counters = NULL;
 
+#if DEBUG
+static unsigned long long server_port;
+#endif
 
 static CoreAPIForApplication * coreAPI;
 
@@ -533,6 +538,15 @@
 #endif
 
   coreAPI = capi;
+#if DEBUG 
+  GC_get_configuration_value_number(capi->cfg,
+                                   "NETWORK",
+                                   "PORT",
+                                   0,
+                                   65536,
+                                   2087,
+                                   &server_port);
+#endif
   api.get = &getTrafficStats;
 #if KEEP_TRANSMITTED_STATS
   for (i=0;i<P2P_PROTO_MAX_USED;i++)





reply via email to

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