-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipwhois.h
50 lines (45 loc) · 853 Bytes
/
ipwhois.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
#include <string>
using namespace std;
class IpWhois
{
private:
void curlIP(string url);
void tableIP();
public:
string ip;
bool success = false;
string message;
string type;
string continent;
string continent_code;
string country;
string country_code;
string country_flag;
string country_capital;
string country_phone;
string country_neighbours;
string region;
string city;
float latitude = 0.00;
float longitude = 0.00;
string asn;
string org;
string isp;
string timezone;
string timezone_name;
int timezone_dstOffset = 0;
int timezone_gmtOffset = 0;
string timezone_gmt;
string currency;
string currency_code;
string currency_symbol;
float currency_rates = 0.00;
string currency_plural;
int completed_requests = 0;
IpWhois() {
type = "IPv4";
}
void results();
void byIpAddr(string ipAdrr);
};