首页 | 数据结构 | 文件列表 | 数据字段 | 全局定义

ip_location.c文件参考

#include "internal.h"
#include <string.h>
#include "debug.h"
#include "prefs.h"
#include "utils.h"
#include "ip_location.h"

ip_location.c包含/依赖关系图:

浏览该文件的源代码。

数据结构

struct  _ip_finder

宏定义

#define DEFAULT_IP_LOCATION_FILE   "gaim/QQWry.dat"

类型定义

typedef _ip_finder ip_finder

函数

guint32 _byte_array_to_int (guint8 *ip, gint count)
void _read_from (GIOChannel *io, guint32 offset, guint8 *buf, gint len)
gsize _read_line_from (GIOChannel *io, guint32 offset, gchar **ret_str)
guint32 _get_string (GIOChannel *io, guint32 offset, gchar **ret)
void _get_country_city (GIOChannel *io, guint32 offset, gchar **country, gchar **area)
void _set_ip_range (gint rec_no, ip_finder *f)
gboolean qq_ip_get_location (guint32 ip, gchar **country, gchar **area)


宏定义文档

#define DEFAULT_IP_LOCATION_FILE   "gaim/QQWry.dat"
 

The QQ2003C protocol plugin

for gaim

Copyright (C) 2004 Puzzlebird

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

This code is based on * qqwry.c, by lvxiang <srm2003@163.com> * IpChecker.m, by Jeff_Ye

在文件ip_location.c37行定义。

参考自 qq_ip_get_location().


类型定义文档

typedef struct _ip_finder ip_finder
 

在文件ip_location.c39行定义。


函数文档

guint32 _byte_array_to_int guint8 *  ip,
gint  count
 

在文件ip_location.c54行定义。

参考自 _get_string()_set_ip_range()qq_ip_get_location().

void _get_country_city GIOChannel *  io,
guint32  offset,
gchar **  country,
gchar **  area
 

在文件ip_location.c144行定义。

参考 _get_string().

参考自 qq_ip_get_location().

函数调用图:

guint32 _get_string GIOChannel *  io,
guint32  offset,
gchar **  ret
 

在文件ip_location.c120行定义。

参考 _byte_array_to_int()_read_from()_read_line_from().

参考自 _get_country_city().

函数调用图:

void _read_from GIOChannel *  io,
guint32  offset,
guint8 *  buf,
gint  len
 

在文件ip_location.c66行定义。

参考自 _get_string()_set_ip_range()qq_ip_get_location().

gsize _read_line_from GIOChannel *  io,
guint32  offset,
gchar **  ret_str
 

在文件ip_location.c91行定义。

参考自 _get_string().

void _set_ip_range gint  rec_no,
ip_finder f
 

在文件ip_location.c158行定义。

参考 _byte_array_to_int()_read_from()_ip_finder::cur_end_ip_ip_finder::cur_start_ip_ip_finder::io_ip_finder::offset_cur_end_ip_ip_finder::offset_first_start_ip.

参考自 qq_ip_get_location().

函数调用图:

gboolean qq_ip_get_location guint32  ip,
gchar **  country,
gchar **  city
 

The QQ2003C protocol plugin

for gaim

Copyright (C) 2004 Puzzlebird

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

在文件ip_location.c180行定义。

参考 _byte_array_to_int()_get_country_city()_read_from()_set_ip_range()_ip_finder::cur_start_ipDEFAULT_IP_LOCATION_FILE_ip_finder::io_ip_finder::offset_cur_end_ip_ip_finder::offset_first_start_ip_ip_finder::offset_last_start_ip.

参考自 _qq_tooltip_text().

函数调用图:


Generated at Mon May 8 15:44:35 2006 for OpenQ by  doxygen 1.4.4