1 #ifndef CONSTANTS_H_INCLUDED
2 #define CONSTATNS_H_INCLUDED
4 /* This file is configured by the Tourist build system (CMAKE) */
6 typedef unsigned int elem_t
;
9 Internal variable as used by the Id class to create the arry
10 of the size ID_SIZE for holding UUID of the Tourist's Node
14 #define SIZEOF_UNSIGNED_INT 4
18 #define PREFIX_BIT (INT_MAX+1)
20 #define MAX_NODE_LEVEL 3
26 //Don't start these values from 0, 0 indicats no table.
36 #define RUDP_PORT 4045
37 #define HTTP_PORT 8085
41 #define HIGHER_LEVELS 1
42 #define EQUAL_LEVELS 2
43 #define LOWER_LEVELS 4
45 #define FIND_PREFIXES 16
46 #define FIND_SUFFIXES 32
47 #define ONE_LEVEL_LOWER 64
48 #define FIND_RANDOM 64
51 #define EVENT_PREFIX_JOIN 1
52 #define EVENT_PREFIX_DISCONNECT 2
53 #define EVENT_PREFIX_LEVEL_UP 3
54 #define EVENT_PREFIX_LEVEL_DOWN 4
55 #define EVENT_SUFFIX_JOIN 5
56 #define EVENT_SUFFIX_DISCONNECT 6
57 #define EVENT_SUFFIX_LEVEL_UP 7
58 #define EVENT_SUFFIX_LEVEL_DOWN 8
60 #define TYPE_SUFFIX 10
62 // Path to the configuration file containing different customization
63 // parameters for this node.
64 #define CONFIG_FILE_PATH "./node.properties"
65 // Specify path to the logging properties file
66 #define LOG_FILE_PATH "./logger.properties"
71 #define NULL_ID "00000000000000000000000000000000"