definitions.h
Go to the documentation of this file.
1 
11 #ifndef DEFINITIONS_H_
12 #define DEFINITIONS_H_
13 
14 #define NONCE_SIZE 16
15 
16 #define DEFAULT_META_TYPE_SIZE 6
17 #define DEFAULT_PAYLOAD_TYPE_SIZE 20
18 #define DEFAULT_QUALITY_CODE_SIZE 9
19 #define DEFAULT_DATE_SIZE 23
20 #define DEFAULT_TIMESTAMP_SIZE 25
21 #define DEFAULT_ID_SIZE 37
22 #define DEFAULT_VALUES_COUNT 5
23 
24 #define MAXIMUM_HOST_NAME_LENGTH 256
25 #define MAXIMUM_PROXY_USER_NAME_LENGTH 32
26 #define MAXIMUM_PROXY_PASSWORD_LENGTH 32
27 #define MAXIMUM_PROXY_DOMAIN_LENGTH 256
28 #define MAXIMUM_USER_AGENT_LENGTH 512
29 
30 // 300 seconds is default http request timeout value.
31 #define DEFAULT_HTTP_REQUEST_TIMEOUT (300)
32 
33 // JWT used in authorization header has an expiration time of 24 hours.
34 #define JWT_EXPIRATION_TIME 86400
35 
36 #endif //DEFINITIONS_H_