From ca3b021998040082862725efd5c310a65fae6b92 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Wed, 1 Sep 2010 12:28:31 +0000 Subject: [PATCH] missing function definition --- src/include/gnunet_dht_service.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/include/gnunet_dht_service.h b/src/include/gnunet_dht_service.h index 16dea8d1f..ca1bebe09 100644 --- a/src/include/gnunet_dht_service.h +++ b/src/include/gnunet_dht_service.h @@ -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. -- 2.25.1