YYChildren / edatx

解析 ipip.net datx 格式的Erlang代码 ,支持 17monipdb.datx

Home Page:https://yychildren.github.io/2018/07/14/edatx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

edatx

解析 ipip.net datx 格式的Erlang代码

数据文件下载

https://www.ipip.net/product/ip.html

代码示例

% 查询地级市精度的IP库

City = edatx_city:init("/path/to/mydata4vipday2.datx").
io:format("~ts,~ts,~ts,~ts~n", edatx_city:find("8.8.8.258", City)).
io:format("~ts,~ts,~ts,~ts~n", edatx_city:find("255.255.255.255", City)).

编译

rebar3 compile

About

解析 ipip.net datx 格式的Erlang代码 ,支持 17monipdb.datx

https://yychildren.github.io/2018/07/14/edatx/

License:Apache License 2.0


Languages

Language:Erlang 100.0%