Coder Social home page Coder Social logo

locateip's Introduction

#LoCi SDK v1.3

##基本说明:

  • LoCi,即LocateIP的简写,是一个用于解析IP归属地数据库的引擎。通过纯C代码写成,一切为了追求效率,非常适合集成到您的程序中。
  • 我们不止解析其它格式的数据库,我们也有自己的数据库格式,更为强大、安全和快速。(尚未完成)
  • 不同的数据库都抽象为ipdb这个结构。使用ipdb.h中的通用函数进行操作。使用示例可见test.c文件

##目前完成的功能:

  • 纯真数据库QQWry.Dat的解析。(默认GB2312编码)
  • 17mon数据库17monipdb.dat的解析。(默认UTF8编码)
  • 解压为txt文件,方便查看数据库所有内容,需要ipdb提供了遍历接口。
  • txt文件数据库的解析,方便生成自定义数据库。(IP必须有序)
  • 纯真数据库QQWry.Dat的生成,需要ipdb提供了遍历接口。
  • 数据库增量补丁的生成,需要两个ipdb提供了遍历接口。老数据库+新数据库->增量补丁(一个很小的文件)
  • 数据库增量补丁的应用,需要旧的ipdb提供了遍历、定位接口。老数据库+增量补丁(一个很小的文件)->新数据库
  • 纯真数据库自动更新解析,配合增量补丁,方便打造自己的更新服务器。

##因为跨平台的原因,我们不提供:

  • 编码转换。
  • 文件读取。
  • 网络下载。

locateip's People

Contributors

shuax avatar jayxon avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.