native

geoip_country

Syntax

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

Description

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

Parameters

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