Permalink
Browse files

Add netSpeedCell example

  • Loading branch information...
borisz authored and oschwald committed Oct 22, 2012
1 parent 0edc6ac commit d9ea1de4be2b946857267c8df3c95a9116c8a5f9
Showing with 18 additions and 1 deletion.
  1. +3 −1 ChangeLog
  2. +3 −0 README.md
  3. +12 −0 examples/netspeedCellExample.cs
View
@@ -1,3 +1,5 @@
+1.19 ???
+ - Add NetSpeedCell example ( Boris Zentner )
1.18 Feb 20th, 2013
- Add South Sudan ( Boris Zentner )
- Update FIPS codes ( Boris Zentner )
@@ -32,7 +34,7 @@
- Changed license from GPL to LGPL
- Added BL/Saint Barthelemy, MF/Saint Martin (ISO-3166-1 additions)
- getCountry method works with GeoIP City as well as GeoIP Country (Frank Mather)
-
+
1.6 February 20th, 2007
- Added AX/Aland Islands, GG/Guernsey, IM/Isle of Man, JE/Jersey (ISO-3166-1 changes)
- Replaced CS/Serbia and Montenegro with RS/Serbia, removed ZR/Zaire, added ME/Montenegro
View
@@ -28,6 +28,9 @@ gmcs examples/orgExample.cs Country.cs DatabaseInfo.cs Location.cs LookupService
Domain:
gmcs examples/domainExample.cs Country.cs DatabaseInfo.cs Location.cs LookupService.cs Region.cs RegionName.cs
+Netspeed cell:
+gmcs examples/netspeedCellExample.cs Country.cs DatabaseInfo.cs Location.cs LookupService.cs Region.cs RegionName.cs
+
To run the examples:
Country:
@@ -0,0 +1,12 @@
+//an example of how to lookup the netspeedcell, asnum, isp or org of a ip address
+using System;
+using System.IO;
+class Appa0{
+ public static void Main(String[] args){
+ //open the database
+ LookupService ls = new LookupService("/usr/local/share/GeoIP/GeoIPNetSpeedCell.dat", LookupService.GEOIP_STANDARD);
+ //get org of the ip address
+ String orgorisp = ls.getOrg("24.24.24.24");
+ Console.Write(" NetspeedCell: " + orgorisp + "\n");
+ }
+}

0 comments on commit d9ea1de

Please sign in to comment.