libpurple/protocols/qq/qq.h

changeset 24301
af1ac5f7ced8
parent 24299
b3ebedfac7cb
child 24303
a290570bded2
child 24311
73d95441cd4c
equal deleted inserted replaced
24299:b3ebedfac7cb 24301:af1ac5f7ced8
46 typedef struct _qq_interval qq_interval; 46 typedef struct _qq_interval qq_interval;
47 47
48 struct _qq_interval { 48 struct _qq_interval {
49 gint resend; 49 gint resend;
50 gint keep_alive; 50 gint keep_alive;
51 gint update; 51 gint update;
52 }; 52 };
53 53
54 struct _qq_buddy { 54 struct _qq_buddy {
55 guint32 uid; 55 guint32 uid;
56 guint16 face; /* index: 0 - 299 */ 56 guint16 face; /* index: 0 - 299 */
89 PurpleConnection *gc; 89 PurpleConnection *gc;
90 90
91 GSList *openconns; 91 GSList *openconns;
92 gboolean use_tcp; /* network in tcp or udp */ 92 gboolean use_tcp; /* network in tcp or udp */
93 PurpleProxyConnectData *conn_data; 93 PurpleProxyConnectData *conn_data;
94 #ifndef purple_proxy_connect_udp
95 PurpleDnsQueryData *udp_query_data; /* udp related */
96 gint udp_can_write_handler; /* socket can_write handle, use in udp connecting and tcp send out */
97 #endif
94 gint fd; /* socket file handler */ 98 gint fd; /* socket file handler */
95 99
96 GList *servers; 100 GList *servers;
97 gchar *curr_server; /* point to servers->data, do not free*/ 101 gchar *curr_server; /* point to servers->data, do not free*/
98 102
99 struct in_addr redirect_ip; 103 struct in_addr redirect_ip;
100 guint16 redirect_port; 104 guint16 redirect_port;
101 guint check_watcher; 105 guint check_watcher;
102 guint connect_watcher; 106 guint connect_watcher;
103 gint connect_retry; 107 gint connect_retry;
104 108
105 qq_interval itv_config; 109 qq_interval itv_config;
106 qq_interval itv_count; 110 qq_interval itv_count;
107 guint network_watcher; 111 guint network_watcher;
108 112
109 GList *transactions; /* check ack packet and resend */ 113 GList *transactions; /* check ack packet and resend */
110 114
111 guint32 uid; /* QQ number */ 115 guint32 uid; /* QQ number */
112 guint8 *token; /* get from server*/ 116 guint8 *token; /* get from server*/
113 int token_len; 117 int token_len;
117 guint8 session_md5[QQ_KEY_LENGTH]; /* concatenate my uid with session_key and md5 it */ 121 guint8 session_md5[QQ_KEY_LENGTH]; /* concatenate my uid with session_key and md5 it */
118 122
119 guint16 send_seq; /* send sequence number */ 123 guint16 send_seq; /* send sequence number */
120 guint8 login_mode; /* online of invisible */ 124 guint8 login_mode; /* online of invisible */
121 gboolean is_login; /* used by qq-add_buddy */ 125 gboolean is_login; /* used by qq-add_buddy */
122 gboolean is_finish_update;
123 126
124 PurpleXfer *xfer; /* file transfer handler */ 127 PurpleXfer *xfer; /* file transfer handler */
125 128
126 /* get from login reply packet */ 129 /* get from login reply packet */
127 time_t login_time; 130 time_t login_time;

mercurial