/**
* Initialize the connection with the DHT service.
- *
+ *
* @param cfg configuration to use
* @param sched scheduler to use
* @param ht_len size of the internal hash table to use for
* @param exp desired expiration time for the value
* @param timeout when to abort with an error if we fail to get
* a confirmation for the PUT from the local DHT service
- * @param cont continuation to call when done;
+ * @param cont continuation to call when done;
* reason will be TIMEOUT on error,
* reason will be PREREQ_DONE on success
* @param cont_cls closure for cont
void
GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle,
const GNUNET_HashCode * key,
- uint32_t type,
- uint32_t size,
+ uint32_t type,
+ uint32_t size,
const char *data,
struct GNUNET_TIME_Absolute exp,
struct GNUNET_TIME_Relative timeout,
- GNUNET_DHT_MessageCallback cont,
+ GNUNET_SCHEDULER_Task cont,
void *cont_cls);
uint32_t type,
uint32_t size,
const void *data);
-
+
/**
* @param key the key to look up
* @param iter function to call on each result
* @param iter_cls closure for iter
+ * @param cont continuation to call once message sent
+ * @param cont_cls closure for continuation
+ *
* @return handle to stop the async get, NULL on error
*/
struct GNUNET_DHT_RouteHandle *
uint32_t type,
const GNUNET_HashCode * key,
GNUNET_DHT_GetIterator iter,
- void *iter_cls);
+ void *iter_cls,
+ GNUNET_SCHEDULER_Task cont,
+ void *cont_cls);
/**
* Stop async DHT-get. Frees associated resources.
struct GNUNET_TIME_Relative timeout,
GNUNET_DHT_ReplyProcessor iter,
void *iter_cls,
- GNUNET_DHT_MessageCallback cont,
+ GNUNET_SCHEDULER_Task cont,
void *cont_cls);
void
#endif
-#endif
+#endif
/* gnunet_dht_service.h */