From: Nathan S. Evans Date: Wed, 1 Sep 2010 12:28:31 +0000 (+0000) Subject: missing function definition X-Git-Tag: initial-import-from-subversion-38251~20489 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ca3b021998040082862725efd5c310a65fae6b92;p=oweals%2Fgnunet.git missing function definition --- 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.