aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-10-11 16:34:46 +0200
committerJulius Bünger <buenger@mytum.de>2018-10-11 16:34:46 +0200
commit70bdd2cc27981f415ee80cb44cc31ec99b12bc00 (patch)
treed0e4940398100cc47f8b643bf578b7a6261872c2 /src
parentb5f74297733d8493881db455e234eeb3ee8cf9f9 (diff)
downloadgnunet-70bdd2cc27981f415ee80cb44cc31ec99b12bc00.tar.gz
gnunet-70bdd2cc27981f415ee80cb44cc31ec99b12bc00.zip
RPS API: Add API calls to rps header
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_rps_service.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/include/gnunet_rps_service.h b/src/include/gnunet_rps_service.h
index f77c3dbc4..7fdfe491e 100644
--- a/src/include/gnunet_rps_service.h
+++ b/src/include/gnunet_rps_service.h
@@ -73,6 +73,29 @@ typedef void (* GNUNET_RPS_NotifyReadyCB) (void *cls,
73 struct GNUNET_RPS_Handle * 73 struct GNUNET_RPS_Handle *
74GNUNET_RPS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); 74GNUNET_RPS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg);
75 75
76
77/**
78 * @brief Start a sub with the given shared value
79 *
80 * @param h Handle to rps
81 * @param shared_value The shared value that defines the members of the sub (-gorup)
82 */
83void
84GNUNET_RPS_sub_start (struct GNUNET_RPS_Handle *h,
85 const char *shared_value);
86
87
88/**
89 * @brief Stop a sub with the given shared value
90 *
91 * @param h Handle to rps
92 * @param shared_value The shared value that defines the members of the sub (-gorup)
93 */
94void
95GNUNET_RPS_sub_stop (struct GNUNET_RPS_Handle *h,
96 const char *shared_value);
97
98
76/** 99/**
77 * Request n random peers. 100 * Request n random peers.
78 * 101 *
@@ -170,6 +193,15 @@ GNUNET_RPS_stream_request (struct GNUNET_RPS_Handle *rps_handle,
170 193
171 194
172/** 195/**
196 * @brief Cancel a specific request for updates from the biased peer stream
197 *
198 * @param srh The request handle to cancel
199 */
200void
201GNUNET_RPS_stream_cancel (struct GNUNET_RPS_StreamRequestHandle *srh);
202
203
204/**
173 * Disconnect from the rps service 205 * Disconnect from the rps service
174 * 206 *
175 * @param h the handle to the rps service 207 * @param h the handle to the rps service