What is it all about?
The GeoIP Legacy C library enables the user to find geographical and network information of an IP address.
• GEOIP_STANDARD - Read database from file system. This uses the least memory. • GEOIP_MEMORY_CACHE - Load database into memory. Provides faster performance but uses more memory. • GEOIP_CHECK_CACHE - Check for updated database. If database has been updated, reload file handle and/or memory cache. • GEOIP_INDEX_CACHE - Cache only the the most frequently accessed index portion of the database, resulting in faster lookups than GEOIP_STANDARD , but less memory usage than GEOIP_MEMORY_CACHE . This is useful for larger databases such as GeoIP Legacy Organization and GeoIP Legacy City. Note: for GeoIP Legacy Country, Region and Netspeed databases, GEOIP_INDEX_CACHE is equivalent to GEOIP_MEMORY_CACHE . • GEOIP_MMAP_CACHE - Load database into mmap shared memory. MMAP is not available for 32bit Windows. • GEOIP_SILENCE - Disables diagnostic messages to stderr in the library; error conditions are detectable via the return values.