aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/gnunet-service-mesh_connection.c')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c
index 0d7168e69..d30eabf5c 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -27,6 +27,8 @@
27#include "platform.h" 27#include "platform.h"
28#include "gnunet_util_lib.h" 28#include "gnunet_util_lib.h"
29 29
30#include "gnunet_statistics_service.h"
31
30#include "gnunet-service-mesh_connection.h" 32#include "gnunet-service-mesh_connection.h"
31#include "gnunet-service-mesh_peer.h" 33#include "gnunet-service-mesh_peer.h"
32#include "mesh_protocol_enc.h" 34#include "mesh_protocol_enc.h"
@@ -68,6 +70,9 @@ enum MeshConnectionState
68}; 70};
69 71
70 72
73/******************************************************************************/
74/******************************** STRUCTS **********************************/
75/******************************************************************************/
71 76
72/** 77/**
73 * Struct containing info about a queued transmission to this peer 78 * Struct containing info about a queued transmission to this peer
@@ -248,6 +253,14 @@ struct MeshConnection
248 int destroy; 253 int destroy;
249}; 254};
250 255
256/******************************************************************************/
257/******************************* GLOBALS ***********************************/
258/******************************************************************************/
259
260/**
261 * Global handle to the statistics service.
262 */
263extern struct GNUNET_STATISTICS_Handle *stats;
251 264
252/** 265/**
253 * Connections known, indexed by cid (MeshConnection). 266 * Connections known, indexed by cid (MeshConnection).
@@ -272,6 +285,10 @@ static unsigned long long max_msgs_queue;
272static struct GNUNET_TIME_Relative refresh_connection_time; 285static struct GNUNET_TIME_Relative refresh_connection_time;
273 286
274 287
288/******************************************************************************/
289/******************************** STATIC ***********************************/
290/******************************************************************************/
291
275#if 0 // avoid compiler warning for unused static function 292#if 0 // avoid compiler warning for unused static function
276static void 293static void
277fc_debug (struct MeshFlowControl *fc) 294fc_debug (struct MeshFlowControl *fc)
@@ -1014,6 +1031,10 @@ register_neighbors (struct MeshConnection *c)
1014} 1031}
1015 1032
1016 1033
1034/******************************************************************************/
1035/******************************** API ***********************************/
1036/******************************************************************************/
1037
1017/** 1038/**
1018 * Core handler for connection creation. 1039 * Core handler for connection creation.
1019 * 1040 *