missing function definition
authorNathan S. Evans <evans@in.tum.de>
Wed, 1 Sep 2010 12:28:31 +0000 (12:28 +0000)
committerNathan S. Evans <evans@in.tum.de>
Wed, 1 Sep 2010 12:28:31 +0000 (12:28 +0000)
src/include/gnunet_dht_service.h

index 16dea8d1fdaa172d27aa5431c30c1fda6a8e7dde..ca1bebe091f01bd4bd6691c13b5a50ae9c805b49 100644 (file)
@@ -317,6 +317,22 @@ GNUNET_DHT_route_stop (struct GNUNET_DHT_RouteHandle *route_handle,
  */
 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 issue a single find
+ * peer request using the peers unique identifier as key.  This
+ * is used to fill the routing table, and is normally controlled
+ * by the DHT itself.  However, for testing and perhaps more
+ * close control over the DHT, this can be explicitly managed.
+ *
+ * @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_find_peers (struct GNUNET_DHT_Handle *handle,
+                           GNUNET_SCHEDULER_Task cont, void *cont_cls);
+
 /**
  * Send a message to the DHT telling it to start dropping
  * all requests received.