You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Below are the methods supported in this class.
19
19
|---|---|
20
20
|Open|Open the IP2Proxy BIN data for lookup. Please see the **Usage** section of the 2 modes supported to load the BIN data file.|
21
21
|Close|Close and clean up the file pointer.|
22
-
|GetPackageVersion|Get the package version (1 to 10 for PX1 to PX10 respectively).|
22
+
|GetPackageVersion|Get the package version (1 to 11 for PX1 to PX11 respectively).|
23
23
|GetModuleVersion|Get the module version.|
24
24
|GetDatabaseVersion|Get the database version.|
25
25
|IsProxy|Check whether if an IP address was a proxy. Returned value:<ul><li>-1 : errors</li><li>0 : not a proxy</li><li>1 : a proxy</li><li>2 : a data center IP address or search engine robot</li></ul>|
@@ -36,6 +36,7 @@ Below are the methods supported in this class.
36
36
|GetAS|Return the autonomous system name of the proxy.|
37
37
|GetLastSeen|Return the number of days that the proxy was last seen.|
38
38
|GetThreat|Return the threat type of the proxy.|
39
+
|GetProvider|Return the provider of the proxy.|
39
40
40
41
## Usage
41
42
@@ -69,10 +70,11 @@ public class Main {
69
70
StringAS;
70
71
StringLastSeen;
71
72
StringThreat;
73
+
StringProvider;
72
74
73
75
StringIP="221.121.146.0";
74
76
75
-
if (Proxy.Open("/usr/data/IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL.BIN", IP2Proxy.IOModes.IP2PROXY_MEMORY_MAPPED) ==0) {
77
+
if (Proxy.Open("/usr/data/IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL-PROVIDER.BIN", IP2Proxy.IOModes.IP2PROXY_MEMORY_MAPPED) ==0) {
0 commit comments