Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

geo_ip.h File Reference


Detailed Description

Support for geographic IP mapping.

Author:
Raphael Manfredi
Date:
2004

#include <glib.h>
#include "lib/host_addr.h"

Go to the source code of this file.

Functions

gint gip_country (const host_addr_t addr)
 Retrieves the country an address is assigned to.

void gip_init (void)
 Called on startup.

void gip_close (void)
 Frees all entries in the hostiles.


Function Documentation

void gip_close void   ) 
 

Frees all entries in the hostiles.

gint gip_country const host_addr_t  ha  ) 
 

Retrieves the country an address is assigned to.

Parameters:
ha the host address to look up.
Returns:
the country mapped to this IP address as an numerical encoded country code, * or -1 when unknown.

void gip_init void   ) 
 

Called on startup.

Loads the bogons.txt into memory.


Generated on Sun Feb 12 10:50:01 2006 for Gtk-Gnutella by doxygen 1.3.6