-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstate.h
35 lines (28 loc) · 1.13 KB
/
state.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <string>
#include <vector>
#define PROD_SERVER1 "streaming1.naad-adna.pelmorex.com"
#define PROD_SERVER2 "streaming2.naad-adna.pelmorex.com"
#define PROD_PORT "8080"
#define LOCAL_TEST_SERVER1 "0.0.0.0"
#define LOCAL_TEST_SERVER2 "127.0.0.1"
#define LOCAL_TEST_PORT "8080"
#define REMOTE_TEST_SERVER1 "167.99.183.228"
#define REMOTE_TEST_SERVER2 "167.99.183.228"
#define REMOTE_TEST_PORT "8080"
#define LONDON_LAT "42.9849"
#define LONDON_LON "-81.2453"
#define STORAGE_LOCATION "/home/Users/nav/Downloads/audiofiles"
// keep this a little above the server's heartbeat (60secs)
// if you make this too close to 60 or a divisor of 60 (eg 15) you might end up perfectly missing the heartbeat
#define HEARTBEAT_FREQUENCY "65"
struct UserSettings
{
std::string server1_ = PROD_SERVER1;
std::string port1_ = PROD_PORT;
std::string server2_ = PROD_SERVER2;
std::string port2_ = PROD_PORT;
std::string latitude_ = LONDON_LAT;
std::string longitude_ = LONDON_LON;
std::string heartbeatFreq_ = HEARTBEAT_FREQUENCY;
std::string storageLocation_= STORAGE_LOCATION;
};