From: Christian Grothoff Date: Wed, 12 May 2010 15:01:12 +0000 (+0000) Subject: move X-Git-Tag: initial-import-from-subversion-38251~21723 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f28210411388325a1606f1b2c17c196852265016;p=oweals%2Fgnunet.git move --- diff --git a/src/arm/gnunet-service-manager.c b/src/arm/gnunet-service-manager.c index 931d04790..81fb730c7 100644 --- a/src/arm/gnunet-service-manager.c +++ b/src/arm/gnunet-service-manager.c @@ -753,7 +753,7 @@ createListeningSocket (struct sockaddr *sa, * @param cls callback data, not used * @param section configuration section * @param option configuration option - * @param the option's value + * @param value the option's value */ static void checkPortNumberCB (void *cls, diff --git a/src/include/gnunet_constants.h b/src/include/gnunet_constants.h index b8e280d4e..5c8749ed0 100644 --- a/src/include/gnunet_constants.h +++ b/src/include/gnunet_constants.h @@ -62,6 +62,13 @@ extern "C" */ #define GNUNET_CONSTANTS_EXEC_WAIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 200) +/** + * After how long do we retry a service connection that was + * unavailable? Used in cases where an exponential back-off + * seems inappropriate. + */ +#define GNUNET_CONSTANTS_SERVICE_RETRY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 500) + /** * After how long do we consider a service irresponsive * even if we assume that the service commonly does not diff --git a/src/include/gnunet_datastore_service.h b/src/include/gnunet_datastore_service.h index 6f16dad22..e2de185bd 100644 --- a/src/include/gnunet_datastore_service.h +++ b/src/include/gnunet_datastore_service.h @@ -210,6 +210,36 @@ GNUNET_DATASTORE_update (struct GNUNET_DATASTORE_Handle *h, void *cont_cls); +/** + * Explicitly remove some content from the database. + * The "cont"inuation will be called with status + * "GNUNET_OK" if content was removed, "GNUNET_NO" + * if no matching entry was found and "GNUNET_SYSERR" + * on all other types of errors. + * + * @param h handle to the datastore + * @param key key for the value + * @param size number of bytes in data + * @param data content stored + * @param queue_priority ranking of this request in the priority queue + * @param max_queue_size at what queue size should this request be dropped + * (if other requests of higher priority are in the queue) + * @param timeout how long to wait at most for a response + * @param cont continuation to call when done + * @param cont_cls closure for cont + */ +void +GNUNET_DATASTORE_remove (struct GNUNET_DATASTORE_Handle *h, + const GNUNET_HashCode *key, + uint32_t size, + const void *data, + unsigned int queue_priority, + unsigned int max_queue_size, + struct GNUNET_TIME_Relative timeout, + GNUNET_DATASTORE_ContinuationWithStatus cont, + void *cont_cls); + + /** * An iterator over a set of items stored in the datastore. * @@ -299,35 +329,6 @@ GNUNET_DATASTORE_get_random (struct GNUNET_DATASTORE_Handle *h, void *iter_cls); -/** - * Explicitly remove some content from the database. - * The "cont"inuation will be called with status - * "GNUNET_OK" if content was removed, "GNUNET_NO" - * if no matching entry was found and "GNUNET_SYSERR" - * on all other types of errors. - * - * @param h handle to the datastore - * @param key key for the value - * @param size number of bytes in data - * @param data content stored - * @param queue_priority ranking of this request in the priority queue - * @param max_queue_size at what queue size should this request be dropped - * (if other requests of higher priority are in the queue) - * @param timeout how long to wait at most for a response - * @param cont continuation to call when done - * @param cont_cls closure for cont - */ -void -GNUNET_DATASTORE_remove (struct GNUNET_DATASTORE_Handle *h, - const GNUNET_HashCode *key, - uint32_t size, - const void *data, - unsigned int queue_priority, - unsigned int max_queue_size, - struct GNUNET_TIME_Relative timeout, - GNUNET_DATASTORE_ContinuationWithStatus cont, - void *cont_cls); - #if 0 /* keep Emacsens' auto-indent happy */ {