GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GEO::MIRROR (3)

.ds Aq ’

NAME

Geo::Mirror - Find closest Mirror

CONTENTS

SYNOPSIS



  use Geo::Mirror;

  my $gm = Geo::Mirror->new(mirror_file => /path/to/mirrors.txt);

  my $mirror = $gm->closest_mirror_by_country(us, $freshness);       # $freshness optional, see description below
  my $mirror = $gm->closest_mirror_by_addr(24.24.24.24, $freshness); # $freshness optional, see description below



DESCRIPTION

This module finds the closest mirror for an IP address. It uses Geo::IP to identify the country that the IP address originated from. If the country is not represented in the mirror list, then it finds the closest country using a latitude/longitude table.

The mirror file should be a space separate list of URL, Country, and mirror freshness. The mirror freshness is optional and can be used by user request a mirror with a minimum freshness.

AUTHOR

Copyright (c) 2004, MaxMind LLC, support@maxmind.com

All rights reserved. This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GEO::MIRROR (3) 2014-09-29

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.