geoip_country

Syntax

native geoip_country(const ip[], result[], len = 45);

Usage

Parameter Description
ip
The IP address to lookup.
result
The result of the geoip lookup.
len
The maximum length of the result buffer.

Description

Lookup the full country name for the given IP address.  Sets the buffer to "error" on
an unsuccessful lookup.

Return

The result length.