2012年1月31日
摘要: 头文件#pragma once;#include <string>const int INDEX_LENGTH = 7; // 一个索引包含4字节的起始IP和3字节的IP记录偏移,共7字节const int IP_LENGTH = 4;const int OFFSET_LENGTH = 3;enum { REDIRECT_MODE_1 = 0x01, // 重定向模式1 偏移量后无地区名 REDIRECT_MODE_2 = 0x02, // 重定向模式2 偏移量后有地区名};class CIpFinder{public: CIpFinder(); CIpF... 阅读全文
posted @ 2012-01-31 21:59 一个人的天空@ 阅读(2552) 评论(0) 推荐(0) 编辑