Mercurial > pidgin.yaz
comparison libpurple/protocols/qq/qq.h @ 23757:69c218fd5d54
applied changes from 5688199e261449d33b5803dafff50d860896ebcb
through 5316525f53e27f838d18a6a08b82c7d55f674591
Reapplied 5316525f53e27f838d18a6a08b82c7d55f674591
2008.09.11 - csyfek <csyfek(at)gmail.com>
* Commit to Pidgin
2008.09.05 - ccpaging <ccpaging(at)gmail.com>
* Filter chars 0x01-0x20 in nickname
2008.09.05 - ccpaging <ccpaging(at)gmail.com>
* Fixed compilation even pidgin-udp-patch not applied
* Place and analysis 'before login packet' after login. packages will be updated slowly and server may send
lots of 'server command packet', while 'before login packet' is placed after 'finished update'
committer: Daniel Atallah <daniel.atallah@gmail.com>
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Mon, 15 Sep 2008 03:03:11 +0000 |
parents | 23cec4360d4a |
children | bcfc98c7a55f |
comparison
equal
deleted
inserted
replaced
23756:1a0caf9983fa | 23757:69c218fd5d54 |
---|---|
42 #endif | 42 #endif |
43 | 43 |
44 typedef struct _qq_data qq_data; | 44 typedef struct _qq_data qq_data; |
45 typedef struct _qq_buddy qq_buddy; | 45 typedef struct _qq_buddy qq_buddy; |
46 typedef struct _qq_interval qq_interval; | 46 typedef struct _qq_interval qq_interval; |
47 typedef struct _qq_net_stat qq_net_stat; | |
47 | 48 |
48 struct _qq_interval { | 49 struct _qq_interval { |
49 gint resend; | 50 gint resend; |
50 gint keep_alive; | 51 gint keep_alive; |
51 gint update; | 52 gint update; |
53 }; | |
54 | |
55 struct _qq_net_stat { | |
56 glong sent; | |
57 glong resend; | |
58 glong lost; | |
59 glong rcved; | |
60 glong rcved_dup; | |
52 }; | 61 }; |
53 | 62 |
54 struct _qq_buddy { | 63 struct _qq_buddy { |
55 guint32 uid; | 64 guint32 uid; |
56 guint16 face; /* index: 0 - 299 */ | 65 guint16 face; /* index: 0 - 299 */ |
94 #ifndef purple_proxy_connect_udp | 103 #ifndef purple_proxy_connect_udp |
95 PurpleDnsQueryData *udp_query_data; /* udp related */ | 104 PurpleDnsQueryData *udp_query_data; /* udp related */ |
96 gint udp_can_write_handler; /* socket can_write handle, use in udp connecting and tcp send out */ | 105 gint udp_can_write_handler; /* socket can_write handle, use in udp connecting and tcp send out */ |
97 #endif | 106 #endif |
98 gint fd; /* socket file handler */ | 107 gint fd; /* socket file handler */ |
108 qq_net_stat net_stat; | |
99 | 109 |
100 GList *servers; | 110 GList *servers; |
101 gchar *curr_server; /* point to servers->data, do not free*/ | 111 gchar *curr_server; /* point to servers->data, do not free*/ |
102 | 112 |
103 struct in_addr redirect_ip; | 113 struct in_addr redirect_ip; |
107 gint connect_retry; | 117 gint connect_retry; |
108 | 118 |
109 qq_interval itv_config; | 119 qq_interval itv_config; |
110 qq_interval itv_count; | 120 qq_interval itv_count; |
111 guint network_watcher; | 121 guint network_watcher; |
122 gint resend_times; | |
112 | 123 |
113 GList *transactions; /* check ack packet and resend */ | 124 GList *transactions; /* check ack packet and resend */ |
114 | 125 |
115 guint32 uid; /* QQ number */ | 126 guint32 uid; /* QQ number */ |
116 guint8 *token; /* get from server*/ | 127 guint8 *token; /* get from server*/ |