-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataTypes.h
More file actions
40 lines (34 loc) · 713 Bytes
/
Copy pathDataTypes.h
File metadata and controls
40 lines (34 loc) · 713 Bytes
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
36
37
38
39
40
#ifndef SPEEDTEST_DATATYPES_H
#define SPEEDTEST_DATATYPES_H
#include <string>
constexpr float EARTH_RADIUS_KM = 6371.0f;
struct IPInfo {
std::string ip_address;
std::string isp;
std::string city;
std::string country_code;
float lat;
float lon;
};
struct ServerInfo {
std::string url;
std::string name;
std::string country;
std::string country_code;
std::string host;
std::string sponsor;
int id;
float lat;
float lon;
float distance;
};
struct TestConfig {
long start_size;
long max_size;
long incr_size;
long buff_size;
long min_test_time_ms;
int concurrency;
std::string label;
};
#endif // SPEEDTEST_DATATYPES_H