#define DHT_BLOOM_K 6
+/**
+ * How many requests to remember for forwarding responses.
+ */
#define MAX_OUTSTANDING_FORWARDS 100
+/**
+ * How long to remember requests so we can forward responses.
+ */
#define DHT_FORWARD_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5)
-#define DHT_REPUBLISH_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 60)
+#define DEFAULT_DHT_REPUBLISH_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 60)
#define DHT_SEND_PRIORITY 4
*/
char bloomfilter[DHT_BLOOM_SIZE];
- /**
- * FIXME: add DHT logging for analysis!
- */
-#if LOG_SQL
- /*
- * Unique query id for sql database interaction.
- */
- uint64_t queryuid;
-
- /*
- * Unique trial id for sql database interaction
- */
- uint64_t trialuid;
-
-#endif
-
/**
* The key to search for
*/
const char *name,
const char *section, uint64_t value);
+ /*
+ * Inserts the specified round into the dhttests.rounds table
+ *
+ * @param round_type the type of round that is being started
+ * @param round_count counter for the round (if applicable)
+ *
+ * @return GNUNET_OK on success, GNUNET_SYSERR on failure
+ */
+ int (*insert_round) (unsigned int round_type, unsigned int round_count);
+
/*
* Update dhttests.trials table with total connections information
*