Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
GeoIP Legacy C# API
C#
tree: e475dc349e

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ChangeLog
Country.cs
DatabaseInfo.cs
Location.cs
LookupService.cs
README
Region.cs
RegionName.cs
cityExample.cs
countryExample.cs
netspeedExample.cs
orgExample.cs
regionExample.cs

README

GeoIP C# API 1.11
================

Instructions for Mono - see http://www.mono-project.com/
Should also work in Windows C# environment.

To compile the examples
For country example
mono /usr/local/bin/mcs.exe countryExample.cs Country.cs DatabaseInfo.cs Location.cs LookupService.cs Region.cs RegionName.cs

For city example
mono /usr/local/bin/mcs.exe cityExample.cs Country.cs DatabaseInfo.cs Location.cs LookupService.cs Region.cs RegionName.cs

for region example
mono /usr/local/bin/mcs.exe regionExample.cs Country.cs DatabaseInfo.cs Location.cs LookupService.cs Region.cs RegionName.cs

to run the examples

for country example
mono countryExample.exe

for city example
mono cityExample.exe

for org example
mono orgExample.exe

MEMORY CACHING

There are two options available:

GEOIP_STANDARD - read database from filesystem, uses least memory.

GEOIP_MEMORY_CACHE - load database into memory, faster performance
        but uses more memory

Copyright 2008 MaxMind Inc
Licensed under the LGPL
Something went wrong with that request. Please try again.