|

楼主 |
发表于 2004-3-21 16:46:51
|
显示全部楼层
绝对可以。我刚刚测试了。
如果不详下载的,
修改 gaim-cvs-0319/src/protocols/qq/parse_packet.h
#define MAX_PACKET_SIZE 548
改为
#define MAX_PACKET_SIZE 65535
现在的版本还给动了 qq_buddy_list.c, 改动qq_send_packet_get_buddies_list 函数如下就可以了
[PHP]void qq_send_packet_get_buddies_list(GaimConnection *gc, guint16 position) {
guint8 *raw_data, *cursor;
g_return_if_fail(gc != NULL);
raw_data = g_newa(guint8, 5);
cursor = raw_data;
// 000-001 starting position, can manually specify
create_packet_w(raw_data, &cursor, position);
// 002-003 flag, before Mar 18, 2004, any value can work, and we sent 00
// I do not what data QQ server is expecting, as QQ2003iii 0304 itself
// even can sending packets 00 and get no response.
//
// tested that 00,00,01 works
create_packet_w(raw_data, &cursor, 0x0000);
create_packet_b(raw_data, &cursor, 0x01);
qq_send_cmd(gc, QQ_CMD_GET_FRIENDS_LIST, TRUE, 0, TRUE, raw_data, 5);
}// qq_send_packet_get_buddies_list[/PHP] |
|