diff options
author | Julius Bünger <buenger@mytum.de> | 2018-10-30 16:50:30 +0100 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2018-10-31 17:10:49 +0100 |
commit | e2cb39b4e3076a13b6e33e8a0d3cf2007e5d2331 (patch) | |
tree | 7d00a00ec470618f0faf0e3173a536ac9325da7f /src/rps/gnunet-service-rps.c | |
parent | c376dd1359d198394b240fd15a13877b8b236fe4 (diff) | |
download | gnunet-e2cb39b4e3076a13b6e33e8a0d3cf2007e5d2331.tar.gz gnunet-e2cb39b4e3076a13b6e33e8a0d3cf2007e5d2331.zip |
RPS service: Add datastructs for analysis of pulls
Diffstat (limited to 'src/rps/gnunet-service-rps.c')
-rw-r--r-- | src/rps/gnunet-service-rps.c | 16 |
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 @@ | |||
25 | #include "gnunet_applications.h" | 25 | #include "gnunet_applications.h" |
26 | #include "gnunet_util_lib.h" | 26 | #include "gnunet_util_lib.h" |
27 | #include "gnunet_cadet_service.h" | 27 | #include "gnunet_cadet_service.h" |
28 | #include "gnunet_core_service.h" | ||
28 | #include "gnunet_peerinfo_service.h" | 29 | #include "gnunet_peerinfo_service.h" |
29 | #include "gnunet_nse_service.h" | 30 | #include "gnunet_nse_service.h" |
30 | #include "gnunet_statistics_service.h" | 31 | #include "gnunet_statistics_service.h" |
@@ -447,6 +448,14 @@ struct GNUNET_STATISTICS_Handle *stats; | |||
447 | struct GNUNET_CADET_Handle *cadet_handle; | 448 | struct GNUNET_CADET_Handle *cadet_handle; |
448 | 449 | ||
449 | /** | 450 | /** |
451 | * Handle to CORE | ||
452 | */ | ||
453 | struct GNUNET_CORE_Handle *core_handle; | ||
454 | |||
455 | struct GNUNET_CONTAINER_MultiPeerMap *map_single_hop; | ||
456 | struct GNUNET_CONTAINER_MultiPeerMap *map_multi_hop; | ||
457 | |||
458 | /** | ||
450 | * Our own identity. | 459 | * Our own identity. |
451 | */ | 460 | */ |
452 | static struct GNUNET_PeerIdentity own_identity; | 461 | static struct GNUNET_PeerIdentity own_identity; |
@@ -4566,6 +4575,13 @@ run (void *cls, | |||
4566 | 4575 | ||
4567 | cadet_handle = GNUNET_CADET_connect (cfg); | 4576 | cadet_handle = GNUNET_CADET_connect (cfg); |
4568 | GNUNET_assert (NULL != cadet_handle); | 4577 | GNUNET_assert (NULL != cadet_handle); |
4578 | core_handle = GNUNET_CORE_connect (cfg, | ||
4579 | NULL, /* cls */ | ||
4580 | NULL, /* init */ | ||
4581 | NULL, /* connects */ | ||
4582 | NULL, /* disconnects */ | ||
4583 | NULL); /* handlers */ | ||
4584 | GNUNET_assert (NULL != core_handle); | ||
4569 | 4585 | ||
4570 | 4586 | ||
4571 | alpha = 0.45; | 4587 | alpha = 0.45; |