Main Page | Data Structures | File List | Data Fields | Globals

ipgeo_context Struct Reference

#include <libipg.h>


Data Fields

FILE * db
u_int8_t flags
u_int8_t dbt
char cc [3]
char country [128]
char region [128]
char city [256]
char isp [256]
double latitude
double longitude
char err_buf [IPGEO_ERRBUF_SIZE]


Detailed Description

The ipgeo_context contains all of the information required to describe an ipgeo session.

Definition at line 94 of file libipg.h.


Field Documentation

FILE* ipgeo_context::db
 

refers to the database

Definition at line 96 of file libipg.h.

Referenced by ipgeo_destroy(), ipgeo_getdbt(), ipgeo_getfd(), ipgeo_init(), and ipgeo_lookup().

u_int8_t ipgeo_context::flags
 

control flags, none currently defined

Definition at line 97 of file libipg.h.

Referenced by ipgeo_init().

u_int8_t ipgeo_context::dbt
 

db type

Definition at line 98 of file libipg.h.

Referenced by ipgeo_getdbt(), and ipgeo_init().

char ipgeo_context::cc[3]
 

the country code

Definition at line 99 of file libipg.h.

Referenced by ipgeo_get_cc(), and ipgeo_lookup().

char ipgeo_context::country[128]
 

the country

Definition at line 100 of file libipg.h.

Referenced by ipgeo_get_country(), and ipgeo_lookup().

char ipgeo_context::region[128]
 

the region

Definition at line 101 of file libipg.h.

Referenced by ipgeo_get_region(), and ipgeo_lookup().

char ipgeo_context::city[256]
 

the city

Definition at line 102 of file libipg.h.

Referenced by ipgeo_get_city(), and ipgeo_lookup().

char ipgeo_context::isp[256]
 

the isp

Definition at line 103 of file libipg.h.

Referenced by ipgeo_get_isp(), and ipgeo_lookup().

double ipgeo_context::latitude
 

the latitude

Definition at line 104 of file libipg.h.

Referenced by ipgeo_get_lat(), and ipgeo_lookup().

double ipgeo_context::longitude
 

the longiude

Definition at line 105 of file libipg.h.

Referenced by ipgeo_get_long(), and ipgeo_lookup().

char ipgeo_context::err_buf[IPGEO_ERRBUF_SIZE]
 

holds error messages

Definition at line 107 of file libipg.h.

Referenced by ipgeo_geterror().


The documentation for this struct was generated from the following file:
Generated on Wed Dec 31 12:06:49 2003 for libipg by doxygen 1.3.4