diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-07-16 11:21:35 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-07-16 11:21:35 +0000 |
commit | 927372a0ff21db46b25b7765deed582ad7489398 (patch) | |
tree | 13df4b8c15c4b19bb21ee1de388b1b6fb762bb71 /src/include/gnunet_nse_service.h | |
parent | 41479de2a35d2c73cf1f6357af37e8324122e90e (diff) | |
download | gnunet-927372a0ff21db46b25b7765deed582ad7489398.tar.gz gnunet-927372a0ff21db46b25b7765deed582ad7489398.zip |
header files
Diffstat (limited to 'src/include/gnunet_nse_service.h')
-rw-r--r-- | src/include/gnunet_nse_service.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/include/gnunet_nse_service.h b/src/include/gnunet_nse_service.h index 012a61c22..99c4e34b8 100644 --- a/src/include/gnunet_nse_service.h +++ b/src/include/gnunet_nse_service.h | |||
@@ -56,7 +56,19 @@ extern "C" | |||
56 | * | 56 | * |
57 | * There are 86400000 milliseconds in a day. | 57 | * There are 86400000 milliseconds in a day. |
58 | */ | 58 | */ |
59 | #define GNUNET_NSE_INTERVAL 3600000 /* Once per hour */ | 59 | /*#define GNUNET_NSE_INTERVAL 360000*/ /* Every six minutes */ |
60 | #define GNUNET_NSE_INTERVAL 30000 /* Every minute */ | ||
61 | |||
62 | /** | ||
63 | * How much clock skew (in milliseconds) will we allow | ||
64 | * for received messages. We check our current time | ||
65 | * with the timestamp received as part of the message | ||
66 | * and if the difference is greater than this tolerance | ||
67 | * we will discard the message as invalid. | ||
68 | * | ||
69 | * There are 86400000 milliseconds in a day. | ||
70 | */ | ||
71 | #define GNUNET_NSE_DRIFT_TOLERANCE 600000 /* Ten minutes. */ | ||
60 | 72 | ||
61 | /** | 73 | /** |
62 | * Number of bits | 74 | * Number of bits |
@@ -76,9 +88,9 @@ struct GNUNET_NSE_Handle; | |||
76 | * @param estimate the value of the current network size estimate | 88 | * @param estimate the value of the current network size estimate |
77 | * @param std_dev standard deviation (rounded down to nearest integer) | 89 | * @param std_dev standard deviation (rounded down to nearest integer) |
78 | * of the size estimation values seen | 90 | * of the size estimation values seen |
79 | * @return GNUNET_OK to continue, GNUNET_SYSERR to abort iteration | 91 | * |
80 | */ | 92 | */ |
81 | typedef int | 93 | typedef void |
82 | (*GNUNET_NSE_Callback) (void *cls, double estimate, double std_dev); | 94 | (*GNUNET_NSE_Callback) (void *cls, double estimate, double std_dev); |
83 | 95 | ||
84 | /** | 96 | /** |