aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_dht_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_dht_service.h')
-rw-r--r--src/include/gnunet_dht_service.h50
1 files changed, 23 insertions, 27 deletions
diff --git a/src/include/gnunet_dht_service.h b/src/include/gnunet_dht_service.h
index 7c7f646e6..46929c366 100644
--- a/src/include/gnunet_dht_service.h
+++ b/src/include/gnunet_dht_service.h
@@ -154,17 +154,14 @@ void GNUNET_DHT_disconnect (struct GNUNET_DHT_Handle *handle);
154 * @param cont continuation to call when done (transmitting request to service) 154 * @param cont continuation to call when done (transmitting request to service)
155 * @param cont_cls closure for cont 155 * @param cont_cls closure for cont
156 */ 156 */
157void 157void GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle,
158GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle, 158 const GNUNET_HashCode * key,
159 const GNUNET_HashCode * key, 159 uint32_t desired_replication_level,
160 uint32_t desired_replication_level, 160 enum GNUNET_DHT_RouteOption options,
161 enum GNUNET_DHT_RouteOption options, 161 enum GNUNET_BLOCK_Type type, size_t size, const char *data,
162 enum GNUNET_BLOCK_Type type, 162 struct GNUNET_TIME_Absolute exp,
163 size_t size, 163 struct GNUNET_TIME_Relative timeout,
164 const char *data, 164 GNUNET_SCHEDULER_Task cont, void *cont_cls);
165 struct GNUNET_TIME_Absolute exp,
166 struct GNUNET_TIME_Relative timeout,
167 GNUNET_SCHEDULER_Task cont, void *cont_cls);
168 165
169 166
170/** 167/**
@@ -292,8 +289,8 @@ struct GNUNET_DHT_FindPeerHandle *GNUNET_DHT_find_peer_start (struct
292 * 289 *
293 * @param find_peer_handle GET operation to stop. 290 * @param find_peer_handle GET operation to stop.
294 */ 291 */
295void 292void GNUNET_DHT_find_peer_stop (struct GNUNET_DHT_FindPeerHandle
296GNUNET_DHT_find_peer_stop (struct GNUNET_DHT_FindPeerHandle *find_peer_handle); 293 *find_peer_handle);
297 294
298 295
299 296
@@ -384,9 +381,8 @@ void GNUNET_DHT_route_stop (struct GNUNET_DHT_RouteHandle *route_handle);
384 * @param cont_cls closure for cont 381 * @param cont_cls closure for cont
385 * @param handle handle to the DHT service 382 * @param handle handle to the DHT service
386 */ 383 */
387void 384void GNUNET_DHT_find_peers (struct GNUNET_DHT_Handle *handle,
388GNUNET_DHT_find_peers (struct GNUNET_DHT_Handle *handle, 385 GNUNET_SCHEDULER_Task cont, void *cont_cls);
389 GNUNET_SCHEDULER_Task cont, void *cont_cls);
390 386
391/* ***** Special API for testing robustness with malicious peers ******* */ 387/* ***** Special API for testing robustness with malicious peers ******* */
392 388
@@ -406,9 +402,9 @@ GNUNET_DHT_find_peers (struct GNUNET_DHT_Handle *handle,
406 * @param cont_cls closure for cont 402 * @param cont_cls closure for cont
407 * 403 *
408 */ 404 */
409void 405void GNUNET_DHT_set_malicious_dropper (struct GNUNET_DHT_Handle *handle,
410GNUNET_DHT_set_malicious_dropper (struct GNUNET_DHT_Handle *handle, 406 GNUNET_SCHEDULER_Task cont,
411 GNUNET_SCHEDULER_Task cont, void *cont_cls); 407 void *cont_cls);
412 408
413 409
414/** 410/**
@@ -420,10 +416,10 @@ GNUNET_DHT_set_malicious_dropper (struct GNUNET_DHT_Handle *handle,
420 * @param cont continuation to call when done (transmitting request to service) 416 * @param cont continuation to call when done (transmitting request to service)
421 * @param cont_cls closure for cont 417 * @param cont_cls closure for cont
422 */ 418 */
423void 419void GNUNET_DHT_set_malicious_putter (struct GNUNET_DHT_Handle *handle,
424GNUNET_DHT_set_malicious_putter (struct GNUNET_DHT_Handle *handle, 420 struct GNUNET_TIME_Relative frequency,
425 struct GNUNET_TIME_Relative frequency, 421 GNUNET_SCHEDULER_Task cont,
426 GNUNET_SCHEDULER_Task cont, void *cont_cls); 422 void *cont_cls);
427 423
428 424
429/** 425/**
@@ -435,10 +431,10 @@ GNUNET_DHT_set_malicious_putter (struct GNUNET_DHT_Handle *handle,
435 * @param cont continuation to call when done (transmitting request to service) 431 * @param cont continuation to call when done (transmitting request to service)
436 * @param cont_cls closure for cont 432 * @param cont_cls closure for cont
437 */ 433 */
438void 434void GNUNET_DHT_set_malicious_getter (struct GNUNET_DHT_Handle *handle,
439GNUNET_DHT_set_malicious_getter (struct GNUNET_DHT_Handle *handle, 435 struct GNUNET_TIME_Relative frequency,
440 struct GNUNET_TIME_Relative frequency, 436 GNUNET_SCHEDULER_Task cont,
441 GNUNET_SCHEDULER_Task cont, void *cont_cls); 437 void *cont_cls);
442 438
443 439
444#endif 440#endif