A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
example s4u-platform-properties: test thehost->get_englobing_zone and diplay its...
[simgrid.git]
/
examples
/
s4u
/
dht-kademlia
/
s4u-dht-kademlia.hpp
diff --git
a/examples/s4u/dht-kademlia/s4u-dht-kademlia.hpp
b/examples/s4u/dht-kademlia/s4u-dht-kademlia.hpp
index
5e9f885
..
05a5078
100644
(file)
--- a/
examples/s4u/dht-kademlia/s4u-dht-kademlia.hpp
+++ b/
examples/s4u/dht-kademlia/s4u-dht-kademlia.hpp
@@
-12,29
+12,22
@@
namespace kademlia {
class Answer;
class Message;
namespace kademlia {
class Answer;
class Message;
-class Ping;
}
}
-#define max_join_trials 4
+constexpr double FIND_NODE_TIMEOUT = 10.0;
+constexpr double FIND_NODE_GLOBAL_TIMEOUT = 50.0;
-#define RECEIVE_TIMEOUT 1
+constexpr unsigned KADEMLIA_ALPHA = 3;
+constexpr unsigned BUCKET_SIZE = 20;
-#define ping_timeout 55
-#define find_node_timeout 10
-#define find_node_global_timeout 50
+constexpr int IDENTIFIER_SIZE = 32;
-#define kademlia_alpha 3
-#define BUCKET_SIZE 20
+constexpr double RANDOM_LOOKUP_INTERVAL = 100.0;
-#define identifier_size 32
-#define max_answers_to_ask 20
+constexpr unsigned MAX_STEPS = 10;
-#define random_lookup_interval 100
+constexpr unsigned JOIN_BUCKETS_QUERIES = 5;
-#define MAX_STEPS 10
-
-#define JOIN_BUCKETS_QUERIES 5
-
-#define RANDOM_LOOKUP_NODE 0
+constexpr unsigned RANDOM_LOOKUP_NODE = 0;
#endif
#endif