gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] 01/03: RPS service: Add datastructs for analysis o


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 01/03: RPS service: Add datastructs for analysis of pulls
Date: Thu, 01 Nov 2018 15:25:31 +0100

This is an automated email from the git hooks/post-receive script.

julius-buenger pushed a commit to branch master
in repository gnunet.

commit e2cb39b4e3076a13b6e33e8a0d3cf2007e5d2331
Author: Julius B√ľnger <address@hidden>
AuthorDate: Tue Oct 30 16:50:30 2018 +0100

    RPS service: Add datastructs for analysis of pulls
---
 src/rps/gnunet-service-rps.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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