geoip_country

Синтаксис

#pragma deprecated Use geoip_country_ex() instead.
native geoip_country(const ip[], result[], len = 45);

Употреба

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

Описание

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

Връщаща стойност

The result length.