Skip to content
This repository

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

file 18 lines (18 sloc) 0.644 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
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");
    }
  }
}
Something went wrong with that request. Please try again.