Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5f6c78d374
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (18 sloc) 0.644 kb
using System;
using System.IO;
class Appa0{
public static void Main(String[] args){
LookupService ls = new LookupService("/usr/local/share/GeoIP/GeoIPNetSpeed.dat", LookupService.GEOIP_STANDARD);
int id = ls.getID(args[0]);
int speed = id;
if (speed == LookupService.GEOIP_UNKNOWN_SPEED){
Console.Write("Unknown \n");
} else if (speed == LookupService.GEOIP_DIALUP_SPEED){
Console.Write("Dialup \n");
} else if (speed == LookupService.GEOIP_CABLEDSL_SPEED){
Console.Write("Cable/DSL \n");
} else if (speed == LookupService.GEOIP_CORPORATE_SPEED){
Console.Write("Corporate \n");
}
}
}
Jump to Line
Something went wrong with that request. Please try again.