ten minute timeout
[oweals/gnunet.git] / src / include / gnunet_nse_service.h
index 012a61c22fe2067fa1f07af45ccc2c19e5aed95e..27cce9bd074f9f49fb738dd560ab7df3f1a65665 100644 (file)
@@ -56,7 +56,24 @@ extern "C"
  *
  * There are 86400000 milliseconds in a day.
  */
-#define GNUNET_NSE_INTERVAL 3600000 /* Once per hour */
+#if 0
+#define GNUNET_NSE_INTERVAL 60000 /* Every minute */
+#define GNUNET_NSE_INTERVAL 180000 /* Every three minutes */
+#define GNUNET_NSE_INTERVAL 360000 /* Every six minutes */
+#define GNUNET_NSE_INTERVAL 600000 /* Every ten minutes */
+#define GNUNET_NSE_INTERVAL 1200000 /* Every twenty minutes */
+#endif
+#define GNUNET_NSE_INTERVAL 360000 /* Every ten minutes */
+/**
+ * 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
@@ -76,9 +93,9 @@ struct GNUNET_NSE_Handle;
  * @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);
 
 /**