libpurple/protocols/qq/qq.h

changeset 24022
d01a6b8ccfad
parent 24020
fe90d74977b6
child 24314
587e97c2b707
equal deleted inserted replaced
24021:ac2108c5b5f4 24022:d01a6b8ccfad
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*/

mercurial