[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r16028 - gnunet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r16028 - gnunet/src/include |
Date: |
Sat, 16 Jul 2011 13:21:35 +0200 |
Author: nevans
Date: 2011-07-16 13:21:35 +0200 (Sat, 16 Jul 2011)
New Revision: 16028
Modified:
gnunet/src/include/gnunet_nse_service.h
gnunet/src/include/gnunet_signatures.h
Log:
header files
Modified: gnunet/src/include/gnunet_nse_service.h
===================================================================
--- gnunet/src/include/gnunet_nse_service.h 2011-07-16 11:11:40 UTC (rev
16027)
+++ gnunet/src/include/gnunet_nse_service.h 2011-07-16 11:21:35 UTC (rev
16028)
@@ -56,9 +56,21 @@
*
* There are 86400000 milliseconds in a day.
*/
-#define GNUNET_NSE_INTERVAL 3600000 /* Once per hour */
+/*#define GNUNET_NSE_INTERVAL 360000*/ /* Every six minutes */
+#define GNUNET_NSE_INTERVAL 30000 /* Every minute */
/**
+ * How much clock skew (in milliseconds) will we allow
+ * for received messages. We check our current time
+ * with the timestamp received as part of the message
+ * and if the difference is greater than this tolerance
+ * we will discard the message as invalid.
+ *
+ * There are 86400000 milliseconds in a day.
+ */
+#define GNUNET_NSE_DRIFT_TOLERANCE 600000 /* Ten minutes. */
+
+/**
* Number of bits
*/
#define GNUNET_NSE_BITS
@@ -76,9 +88,9 @@
* @param estimate the value of the current network size estimate
* @param std_dev standard deviation (rounded down to nearest integer)
* of the size estimation values seen
- * @return GNUNET_OK to continue, GNUNET_SYSERR to abort iteration
+ *
*/
-typedef int
+typedef void
(*GNUNET_NSE_Callback) (void *cls, double estimate, double std_dev);
/**
Modified: gnunet/src/include/gnunet_signatures.h
===================================================================
--- gnunet/src/include/gnunet_signatures.h 2011-07-16 11:11:40 UTC (rev
16027)
+++ gnunet/src/include/gnunet_signatures.h 2011-07-16 11:21:35 UTC (rev
16028)
@@ -112,6 +112,11 @@
*/
#define GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT 13
+/**
+ * Signature of a network size estimate message.
+ */
+#define GNUNET_SIGNATURE_PURPOSE_NSE_SEND 14
+
#if 0 /* keep Emacsens' auto-indent happy */
{
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r16028 - gnunet/src/include,
gnunet <=