aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-27 14:42:43 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-27 14:42:43 +0000
commitf6295616e7a91079e9182ee21f895378733c0522 (patch)
tree8fd5f70c87e89806da41f387ab596d79885beb59 /src/include
parent5ddb40a745091645318b98d51bdca913e3706385 (diff)
downloadgnunet-f6295616e7a91079e9182ee21f895378733c0522.tar.gz
gnunet-f6295616e7a91079e9182ee21f895378733c0522.zip
stuff
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_dht_service_new.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/include/gnunet_dht_service_new.h b/src/include/gnunet_dht_service_new.h
index 88cc390b0..5a21a6ce5 100644
--- a/src/include/gnunet_dht_service_new.h
+++ b/src/include/gnunet_dht_service_new.h
@@ -203,49 +203,6 @@ void
203GNUNET_DHT_get_stop (struct GNUNET_DHT_GetHandle *get_handle); 203GNUNET_DHT_get_stop (struct GNUNET_DHT_GetHandle *get_handle);
204 204
205 205
206/* ******** Special high-level API for finding peers *********** */
207
208/**
209 * Iterator called on each result obtained from a find peer
210 * operation
211 *
212 * @param cls closure
213 * @param peer hello of a target (peer near key)
214 */
215typedef void (*GNUNET_DHT_FindPeerProcessor) (void *cls,
216 const struct GNUNET_HELLO_Message
217 * peer);
218
219
220/**
221 * Perform an asynchronous FIND PEER operation on the DHT.
222 *
223 * @param handle handle to the DHT service
224 * @param timeout timeout for this request to be sent to the
225 * service
226 * @param key the key to look up
227 * @param options routing options for this message
228 * @param proc function to call on each result
229 * @param proc_cls closure for proc
230 * @return handle to stop the async get, NULL on error
231 */
232struct GNUNET_DHT_FindPeerHandle *
233GNUNET_DHT_find_peer_start (struct GNUNET_DHT_Handle *handle,
234 struct GNUNET_TIME_Relative timeout,
235 const GNUNET_HashCode * key,
236 enum GNUNET_DHT_RouteOption options,
237 GNUNET_DHT_FindPeerProcessor proc, void *proc_cls);
238
239
240/**
241 * Stop async find peer. Frees associated resources.
242 *
243 * @param find_peer_handle GET operation to stop.
244 */
245void
246GNUNET_DHT_find_peer_stop (struct GNUNET_DHT_FindPeerHandle *find_peer_handle);
247
248
249#if 0 /* keep Emacsens' auto-indent happy */ 206#if 0 /* keep Emacsens' auto-indent happy */
250{ 207{
251#endif 208#endif