[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11356 - in gnunet/src: arm include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11356 - in gnunet/src: arm include |
Date: |
Wed, 12 May 2010 17:01:12 +0200 |
Author: grothoff
Date: 2010-05-12 17:01:12 +0200 (Wed, 12 May 2010)
New Revision: 11356
Modified:
gnunet/src/arm/gnunet-service-manager.c
gnunet/src/include/gnunet_constants.h
gnunet/src/include/gnunet_datastore_service.h
Log:
move
Modified: gnunet/src/arm/gnunet-service-manager.c
===================================================================
--- gnunet/src/arm/gnunet-service-manager.c 2010-05-12 15:01:03 UTC (rev
11355)
+++ gnunet/src/arm/gnunet-service-manager.c 2010-05-12 15:01:12 UTC (rev
11356)
@@ -753,7 +753,7 @@
* @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,
Modified: gnunet/src/include/gnunet_constants.h
===================================================================
--- gnunet/src/include/gnunet_constants.h 2010-05-12 15:01:03 UTC (rev
11355)
+++ gnunet/src/include/gnunet_constants.h 2010-05-12 15:01:12 UTC (rev
11356)
@@ -63,6 +63,13 @@
#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
* respond instantly (DNS, Database, etc.).
Modified: gnunet/src/include/gnunet_datastore_service.h
===================================================================
--- gnunet/src/include/gnunet_datastore_service.h 2010-05-12 15:01:03 UTC
(rev 11355)
+++ gnunet/src/include/gnunet_datastore_service.h 2010-05-12 15:01:12 UTC
(rev 11356)
@@ -211,6 +211,36 @@
/**
+ * 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.
*
* @param cls closure
@@ -299,36 +329,7 @@
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 */
{
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11356 - in gnunet/src: arm include,
gnunet <=