Lines Matching refs:GeoIP
2 #include "GeoIP.h"
64 GeoIP *i = NULL;
65 i = GeoIP_open("/usr/local/share/GeoIP/GeoIP.dat", flags);
67 printf("error: GeoIP.dat does not exist\n");
83 GeoIP *i = NULL;
88 i = GeoIP_open("/usr/local/share/GeoIP/GeoIPOrg.dat", flags);
106 GeoIP *i = NULL;
111 i = GeoIP_open("/usr/local/share/GeoIP/GeoIPRegion.dat", flags);
130 GeoIP *i = NULL;
135 i = GeoIP_open("/usr/local/share/GeoIP/GeoIPCity.dat", flags);
155 testgeoipcountry(0, "GeoIP Country", 100 * time);
156 testgeoipcountry(GEOIP_CHECK_CACHE, "GeoIP Country with GEOIP_CHECK_CACHE",
159 "GeoIP Country with GEOIP_MEMORY_CACHE", 1000 * time);
161 "GeoIP Country with GEOIP_MEMORY_CACHE and GEOIP_CHECK_CACHE",
164 testgeoipregion(0, "GeoIP Region", 100 * time);
165 testgeoipregion(GEOIP_CHECK_CACHE, "GeoIP Region with GEOIP_CHECK_CACHE",
167 testgeoipregion(GEOIP_MEMORY_CACHE, "GeoIP Region with GEOIP_MEMORY_CACHE",
170 "GeoIP Region with GEOIP_MEMORY_CACHE and GEOIP_CHECK_CACHE",
173 testgeoiporg(0, "GeoIP Org", 50 * time);
174 testgeoiporg(GEOIP_INDEX_CACHE, "GeoIP Org with GEOIP_INDEX_CACHE",
177 "GeoIP Org with GEOIP_INDEX_CACHE and GEOIP_CHECK_CACHE",
179 testgeoiporg(GEOIP_MEMORY_CACHE, "GeoIP Org with GEOIP_MEMORY_CACHE",
182 testgeoipcity(0, "GeoIP City", 50 * time);
183 testgeoipcity(GEOIP_INDEX_CACHE, "GeoIP City with GEOIP_INDEX_CACHE",
186 "GeoIP City with GEOIP_INDEX_CACHE and GEOIP_CHECK_CACHE",
188 testgeoipcity(GEOIP_MEMORY_CACHE, "GeoIP City with GEOIP_MEMORY_CACHE",