aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_dht_service.h
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-08-12 16:21:51 +0000
committerNathan S. Evans <evans@in.tum.de>2010-08-12 16:21:51 +0000
commitb8038c99a15dd3f33cd8e3ee4d10110439f1dbea (patch)
tree528041c9999d9c1eece025c44a803698bab2f498 /src/include/gnunet_dht_service.h
parent265c834993ad634f3bf453aec5449192b501b196 (diff)
downloadgnunet-b8038c99a15dd3f33cd8e3ee4d10110439f1dbea.tar.gz
gnunet-b8038c99a15dd3f33cd8e3ee4d10110439f1dbea.zip
Diffstat (limited to 'src/include/gnunet_dht_service.h')
-rw-r--r--src/include/gnunet_dht_service.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/include/gnunet_dht_service.h b/src/include/gnunet_dht_service.h
index 5398b0ba1..16dea8d1f 100644
--- a/src/include/gnunet_dht_service.h
+++ b/src/include/gnunet_dht_service.h
@@ -304,6 +304,43 @@ GNUNET_DHT_route_stop (struct GNUNET_DHT_RouteHandle *route_handle,
304 GNUNET_SCHEDULER_Task cont, 304 GNUNET_SCHEDULER_Task cont,
305 void *cont_cls); 305 void *cont_cls);
306 306
307/**
308 * Send a message to the DHT telling it to start issuing random GET
309 * requests every 'frequency' milliseconds.
310 *
311 * @param handle handle to the DHT service
312 * @param frequency delay (in milliseconds) between sending malicious messages
313 * @param cont continuation to call once the message is sent
314 * @param cont_cls closure for continuation
315 *
316 * @return GNUNET_YES if the control message was sent, GNUNET_NO if not
317 */
318int GNUNET_DHT_set_malicious_getter (struct GNUNET_DHT_Handle *handle, int frequency, GNUNET_SCHEDULER_Task cont, void *cont_cls);
319
320/**
321 * Send a message to the DHT telling it to start dropping
322 * all requests received.
323 *
324 * @param handle handle to the DHT service
325 * @param cont continuation to call once the message is sent
326 * @param cont_cls closure for continuation
327 *
328 * @return GNUNET_YES if the control message was sent, GNUNET_NO if not
329 */
330int GNUNET_DHT_set_malicious_dropper (struct GNUNET_DHT_Handle *handle, GNUNET_SCHEDULER_Task cont, void *cont_cls);
331
332/**
333 * Send a message to the DHT telling it to start issuing random PUT
334 * requests every 'frequency' milliseconds.
335 *
336 * @param handle handle to the DHT service
337 * @param frequency delay (in milliseconds) between sending malicious messages
338 * @param cont continuation to call once the message is sent
339 * @param cont_cls closure for continuation
340 *
341 * @return GNUNET_YES if the control message was sent, GNUNET_NO if not
342 */
343int GNUNET_DHT_set_malicious_putter (struct GNUNET_DHT_Handle *handle, int frequency, GNUNET_SCHEDULER_Task cont, void *cont_cls);
307 344
308#if 0 /* keep Emacsens' auto-indent happy */ 345#if 0 /* keep Emacsens' auto-indent happy */
309{ 346{