Mercurial > pidgin
comparison libpurple/protocols/qq/buddy_status.c @ 23050:51dbe83ebbd3
patch-04-tcp-pending
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Tue, 24 Jun 2008 12:22:40 +0000 |
parents | 9a5d140400f1 |
children | 55f986ccbb6a |
comparison
equal
deleted
inserted
replaced
23049:190bc4ecf6c3 | 23050:51dbe83ebbd3 |
---|---|
31 #include "buddy_status.h" | 31 #include "buddy_status.h" |
32 #include "crypt.h" | 32 #include "crypt.h" |
33 #include "header_info.h" | 33 #include "header_info.h" |
34 #include "keep_alive.h" | 34 #include "keep_alive.h" |
35 #include "packet_parse.h" | 35 #include "packet_parse.h" |
36 #include "send_core.h" | |
37 #include "utils.h" | 36 #include "utils.h" |
38 | 37 |
39 #include "qq_proxy.h" | 38 #include "qq_network.h" |
40 | 39 |
41 #define QQ_MISC_STATUS_HAVING_VIIDEO 0x00000001 | 40 #define QQ_MISC_STATUS_HAVING_VIIDEO 0x00000001 |
42 #define QQ_CHANGE_ONLINE_STATUS_REPLY_OK 0x30 /* ASCII value of "0" */ | 41 #define QQ_CHANGE_ONLINE_STATUS_REPLY_OK 0x30 /* ASCII value of "0" */ |
43 | 42 |
44 void qq_buddy_status_dump_unclear(qq_buddy_status *s) | 43 void qq_buddy_status_dump_unclear(qq_buddy_status *s) |
55 g_string_append_printf(dump, "011: %02x (unknown)\n", s->unknown2); | 54 g_string_append_printf(dump, "011: %02x (unknown)\n", s->unknown2); |
56 g_string_append_printf(dump, "012: %02x (status)\n", s->status); | 55 g_string_append_printf(dump, "012: %02x (status)\n", s->status); |
57 g_string_append_printf(dump, "013-014: %04x (client_version)\n", s->client_version); | 56 g_string_append_printf(dump, "013-014: %04x (client_version)\n", s->client_version); |
58 /* g_string_append_printf(dump, "015-030: %s (unknown key)\n", s->unknown_key); */ | 57 /* g_string_append_printf(dump, "015-030: %s (unknown key)\n", s->unknown_key); */ |
59 purple_debug(PURPLE_DEBUG_INFO, "QQ", "Buddy status entry, %s", dump->str); | 58 purple_debug(PURPLE_DEBUG_INFO, "QQ", "Buddy status entry, %s", dump->str); |
60 _qq_show_packet("Unknown key", s->unknown_key, QQ_KEY_LENGTH); | 59 qq_show_packet("Unknown key", s->unknown_key, QQ_KEY_LENGTH); |
61 g_string_free(dump, TRUE); | 60 g_string_free(dump, TRUE); |
62 } | 61 } |
63 | 62 |
64 /* TODO: figure out what's going on with the IP region. Sometimes I get valid IP addresses, | 63 /* TODO: figure out what's going on with the IP region. Sometimes I get valid IP addresses, |
65 * but the port number's weird, other times I get 0s. I get these simultaneously on the same buddy, | 64 * but the port number's weird, other times I get 0s. I get these simultaneously on the same buddy, |