• 博客(0)
  • 资源 (1)

空空如也

GeoIP C API (Linux下使用)

This API should work on most UNIX and GNU/Linux platforms and is thread-safe. ./configure make make check make install For installing on Windows, see the READMEwin32.txt file supplied with the distribution. Usage This following sample code looks up the country code by IP address: #include <GeoIP.h> int main (int argc, char *argv[]) { GeoIP * gi; gi = GeoIP_new(GEOIP_STANDARD); printf("code %s\n", GeoIP_country_code_by_name(gi, "yahoo.com")); } To compile this example, run gcc -lGeoIP example.c.

2008-10-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除