Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
101f1092a9425b4974566c672e6cd68cd7753b2d
[simgrid.git] / examples / deprecated / msg / dht-kademlia / common.h
1 /* Copyright (c) 2012-2019. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef _KADEMLIA_EXAMPLES_COMMON
8 #define _KADEMLIA_EXAMPLES_COMMON
9 #define max_join_trials 4
10
11 #define find_node_timeout 10
12 #define find_node_global_timeout 50
13
14 #define kademlia_alpha 3
15 #define bucket_size 20
16
17 #define identifier_size 32
18
19 #define random_lookup_interval 100
20
21 #define MAILBOX_NAME_SIZE 16 /* (identifier_size / 4)  (hex encoded) */
22
23 #define COMM_SIZE 1
24 #define COMP_SIZE 0
25
26 #define MAX_STEPS 10
27
28 #define JOIN_BUCKETS_QUERIES 5
29
30 #define RANDOM_LOOKUP_NODE 0
31
32
33 #endif                          /* _KADEMLIA_EXAMPLES_COMMON */