diff options
author | Julius Bünger <buenger@mytum.de> | 2014-12-14 21:48:00 +0000 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2014-12-14 21:48:00 +0000 |
commit | 6a74800a488adf754645249267e93e6c82d22219 (patch) | |
tree | 6e9313db06c581a88f5a440239a662d5dcfbbb6b /src/include/gnunet_rps_service.h | |
parent | a8e5b09df9ce6f090ab4ecfde02fc7ab3b667c13 (diff) | |
download | gnunet-6a74800a488adf754645249267e93e6c82d22219.tar.gz gnunet-6a74800a488adf754645249267e93e6c82d22219.zip |
before deleting PeerList
Signed-off-by: Julius Bünger <buenger@mytum.de>
Diffstat (limited to 'src/include/gnunet_rps_service.h')
-rw-r--r-- | src/include/gnunet_rps_service.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_rps_service.h b/src/include/gnunet_rps_service.h index dc822b8f1..3a3b2cbad 100644 --- a/src/include/gnunet_rps_service.h +++ b/src/include/gnunet_rps_service.h | |||
@@ -41,6 +41,12 @@ extern "C" | |||
41 | 41 | ||
42 | typedef void (* GNUNET_RPS_NotifyReadyCB) (void *cls, uint64_t num_peers, struct GNUNET_PeerIdentity *peers); | 42 | typedef void (* GNUNET_RPS_NotifyReadyCB) (void *cls, uint64_t num_peers, struct GNUNET_PeerIdentity *peers); |
43 | 43 | ||
44 | /** | ||
45 | * Request n random peers. | ||
46 | * | ||
47 | * This is a wrapper function that makes it useless to have to | ||
48 | * (dis)connect from/to the service. | ||
49 | */ | ||
44 | struct GNUNET_RPS_Request_Handle * | 50 | struct GNUNET_RPS_Request_Handle * |
45 | GNUNET_RPS_request_peers_single_call (const struct GNUNET_CONFIGURATION_Handle *cfg, | 51 | GNUNET_RPS_request_peers_single_call (const struct GNUNET_CONFIGURATION_Handle *cfg, |
46 | uint64_t n, | 52 | uint64_t n, |
@@ -55,6 +61,11 @@ GNUNET_RPS_connect( const struct GNUNET_CONFIGURATION_Handle *cfg ); | |||
55 | 61 | ||
56 | /** | 62 | /** |
57 | * Request n random peers. | 63 | * Request n random peers. |
64 | * | ||
65 | * This does exacly the same as GNUNET_RPS_request_peers_single_call | ||
66 | * but needs a GNUNET_RPS_Handle. | ||
67 | * This exists only for other parts of GNUnet that expect having to | ||
68 | * (dis)connect from/to a service. | ||
58 | */ | 69 | */ |
59 | struct GNUNET_RPS_Request_Handle * | 70 | struct GNUNET_RPS_Request_Handle * |
60 | GNUNET_RPS_request_peers (struct GNUNET_RPS_Handle *h, uint64_t n, | 71 | GNUNET_RPS_request_peers (struct GNUNET_RPS_Handle *h, uint64_t n, |