[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12520 - gnunet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12520 - gnunet/src/include |
Date: |
Thu, 12 Aug 2010 18:21:51 +0200 |
Author: nevans
Date: 2010-08-12 18:21:51 +0200 (Thu, 12 Aug 2010)
New Revision: 12520
Modified:
gnunet/src/include/gnunet_dht_service.h
Log:
Modified: gnunet/src/include/gnunet_dht_service.h
===================================================================
--- gnunet/src/include/gnunet_dht_service.h 2010-08-12 16:21:33 UTC (rev
12519)
+++ gnunet/src/include/gnunet_dht_service.h 2010-08-12 16:21:51 UTC (rev
12520)
@@ -304,7 +304,44 @@
GNUNET_SCHEDULER_Task cont,
void *cont_cls);
+/**
+ * Send a message to the DHT telling it to start issuing random GET
+ * requests every 'frequency' milliseconds.
+ *
+ * @param handle handle to the DHT service
+ * @param frequency delay (in milliseconds) between sending malicious messages
+ * @param cont continuation to call once the message is sent
+ * @param cont_cls closure for continuation
+ *
+ * @return GNUNET_YES if the control message was sent, GNUNET_NO if not
+ */
+int GNUNET_DHT_set_malicious_getter (struct GNUNET_DHT_Handle *handle, int
frequency, GNUNET_SCHEDULER_Task cont, void *cont_cls);
+/**
+ * Send a message to the DHT telling it to start dropping
+ * all requests received.
+ *
+ * @param handle handle to the DHT service
+ * @param cont continuation to call once the message is sent
+ * @param cont_cls closure for continuation
+ *
+ * @return GNUNET_YES if the control message was sent, GNUNET_NO if not
+ */
+int GNUNET_DHT_set_malicious_dropper (struct GNUNET_DHT_Handle *handle,
GNUNET_SCHEDULER_Task cont, void *cont_cls);
+
+/**
+ * Send a message to the DHT telling it to start issuing random PUT
+ * requests every 'frequency' milliseconds.
+ *
+ * @param handle handle to the DHT service
+ * @param frequency delay (in milliseconds) between sending malicious messages
+ * @param cont continuation to call once the message is sent
+ * @param cont_cls closure for continuation
+ *
+ * @return GNUNET_YES if the control message was sent, GNUNET_NO if not
+ */
+int GNUNET_DHT_set_malicious_putter (struct GNUNET_DHT_Handle *handle, int
frequency, GNUNET_SCHEDULER_Task cont, void *cont_cls);
+
#if 0 /* keep Emacsens' auto-indent happy */
{
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12520 - gnunet/src/include,
gnunet <=