summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-10-30 16:50:30 +0100
committerJulius Bünger <buenger@mytum.de>2018-10-31 17:10:49 +0100
commite2cb39b4e3076a13b6e33e8a0d3cf2007e5d2331 (patch)
tree7d00a00ec470618f0faf0e3173a536ac9325da7f /src
parentc376dd1359d198394b240fd15a13877b8b236fe4 (diff)
RPS service: Add datastructs for analysis of pulls
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index d129ba746..b890a96c8 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -25,6 +25,7 @@
#include "gnunet_applications.h"
#include "gnunet_util_lib.h"
#include "gnunet_cadet_service.h"
+#include "gnunet_core_service.h"
#include "gnunet_peerinfo_service.h"
#include "gnunet_nse_service.h"
#include "gnunet_statistics_service.h"
@@ -447,6 +448,14 @@ struct GNUNET_STATISTICS_Handle *stats;
struct GNUNET_CADET_Handle *cadet_handle;
/**
+ * Handle to CORE
+ */
+struct GNUNET_CORE_Handle *core_handle;
+
+struct GNUNET_CONTAINER_MultiPeerMap *map_single_hop;
+struct GNUNET_CONTAINER_MultiPeerMap *map_multi_hop;
+
+/**
* Our own identity.
*/
static struct GNUNET_PeerIdentity own_identity;
@@ -4566,6 +4575,13 @@ run (void *cls,
cadet_handle = GNUNET_CADET_connect (cfg);
GNUNET_assert (NULL != cadet_handle);
+ core_handle = GNUNET_CORE_connect (cfg,
+ NULL, /* cls */
+ NULL, /* init */
+ NULL, /* connects */
+ NULL, /* disconnects */
+ NULL); /* handlers */
+ GNUNET_assert (NULL != core_handle);
alpha = 0.45;