/*********************** GLOBAL VARIABLES ****************************/
/******************************************************************************/
-/************************** Configuration parameters **************************/
-
-
-
-/*************************** Static global variables **************************/
+/****************************** Global variables ******************************/
/**
* Handle to the statistics service.
*/
-static struct GNUNET_STATISTICS_Handle *stats;
+struct GNUNET_STATISTICS_Handle *stats;
+
+/*************************** Static global variables **************************/
/**
* Local peer own ID (memory efficient handle).
#include "platform.h"
+#include "gnunet_util_lib.h"
+
+#include "gnunet_statistics_service.h"
+
#include "mesh_enc.h"
#include "mesh_protocol_enc.h"
+
#include "gnunet-service-mesh_channel.h"
#include "gnunet-service-mesh_local.h"
#include "gnunet-service-mesh_tunnel.h"
};
+/******************************************************************************/
+/******************************* GLOBALS ***********************************/
+/******************************************************************************/
+
+/**
+ * Global handle to the statistics service.
+ */
+extern struct GNUNET_STATISTICS_Handle *stats;
+
+
+/******************************************************************************/
+/******************************** STATIC ***********************************/
+/******************************************************************************/
+
/**
* We have received a message out of order, or the client is not ready.
* Buffer it until we receive an ACK from the client or the missing
}
+/******************************************************************************/
+/******************************** API ***********************************/
+/******************************************************************************/
+
/**
* Count channels in a DLL.
*
#include "platform.h"
#include "gnunet_util_lib.h"
+#include "gnunet_statistics_service.h"
+
#include "gnunet-service-mesh_connection.h"
#include "gnunet-service-mesh_peer.h"
#include "mesh_protocol_enc.h"
};
+/******************************************************************************/
+/******************************** STRUCTS **********************************/
+/******************************************************************************/
/**
* Struct containing info about a queued transmission to this peer
int destroy;
};
+/******************************************************************************/
+/******************************* GLOBALS ***********************************/
+/******************************************************************************/
+
+/**
+ * Global handle to the statistics service.
+ */
+extern struct GNUNET_STATISTICS_Handle *stats;
/**
* Connections known, indexed by cid (MeshConnection).
static struct GNUNET_TIME_Relative refresh_connection_time;
+/******************************************************************************/
+/******************************** STATIC ***********************************/
+/******************************************************************************/
+
#if 0 // avoid compiler warning for unused static function
static void
fc_debug (struct MeshFlowControl *fc)
}
+/******************************************************************************/
+/******************************** API ***********************************/
+/******************************************************************************/
+
/**
* Core handler for connection creation.
*
#include "gnunet_util_lib.h"
#include "gnunet_dht_service.h"
+#include "gnunet_statistics_service.h"
#include "mesh_path.h"
#include "gnunet-service-mesh_dht.h"
/******************************* GLOBALS ***********************************/
/******************************************************************************/
+/**
+ * Global handle to the statistics service.
+ */
+extern struct GNUNET_STATISTICS_Handle *stats;
+
/**
* Handle to use DHT.
*/
#include "platform.h"
+#include "gnunet_util_lib.h"
+
+#include "gnunet_statistics_service.h"
+
#include "mesh_enc.h"
#include "mesh_protocol_enc.h" // GNUNET_MESH_Data is shared
/******************************* GLOBALS ***********************************/
/******************************************************************************/
+/**
+ * Global handle to the statistics service.
+ */
+extern struct GNUNET_STATISTICS_Handle *stats;
+
/**
* Handle to server lib.
*/
#include "gnunet_util_lib.h"
#include "gnunet_core_service.h"
+#include "gnunet_statistics_service.h"
#include "mesh_protocol_enc.h"
/******************************* GLOBALS ***********************************/
/******************************************************************************/
+/**
+ * Global handle to the statistics service.
+ */
+extern struct GNUNET_STATISTICS_Handle *stats;
+
/**
* Peers known, indexed by PeerIdentity (MeshPeer).
*/
#include "platform.h"
#include "gnunet_util_lib.h"
+#include "gnunet_statistics_service.h"
+
#include "mesh_protocol_enc.h"
#include "gnunet-service-mesh_tunnel.h"
/******************************* GLOBALS ***********************************/
/******************************************************************************/
+/**
+ * Global handle to the statistics service.
+ */
+extern struct GNUNET_STATISTICS_Handle *stats;
+
/**
* Default TTL for payload packets.
*/
/******************************** STATIC ***********************************/
/******************************************************************************/
-
/**
* Get string description for tunnel state.
*
}
+/******************************************************************************/
+/******************************** API ***********************************/
+/******************************************************************************/
+
/**
* Cache a message to be sent once tunnel is online.
*
}
-
-/******************************************************************************/
-/******************************** API ***********************************/
-/******************************************************************************/
-
/**
* Initialize the tunnel subsystem.
*