Mercurial > pidgin
comparison libpurple/protocols/qq/qq.h @ 24090:6408be948d56
disapproval of revision '92d52eef2994d2697999177804e3665989cfa352'
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 15 Sep 2008 03:03:59 +0000 |
parents | 2f5a7edd8f68 |
children | 5c030dc88356 |
comparison
equal
deleted
inserted
replaced
24089:2f5a7edd8f68 | 24090:6408be948d56 |
---|---|
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 | |
98 gint fd; /* socket file handler */ | 94 gint fd; /* socket file handler */ |
99 | 95 |
100 GList *servers; | 96 GList *servers; |
101 gchar *curr_server; /* point to servers->data, do not free*/ | 97 gchar *curr_server; /* point to servers->data, do not free*/ |
102 | 98 |
103 struct in_addr redirect_ip; | 99 struct in_addr redirect_ip; |
104 guint16 redirect_port; | 100 guint16 redirect_port; |
105 guint check_watcher; | 101 guint check_watcher; |
106 guint connect_watcher; | 102 guint connect_watcher; |
107 gint connect_retry; | 103 gint connect_retry; |
108 | 104 |
109 qq_interval itv_config; | 105 qq_interval itv_config; |
110 qq_interval itv_count; | 106 qq_interval itv_count; |
111 guint network_watcher; | 107 guint network_watcher; |
112 | 108 |
113 GList *transactions; /* check ack packet and resend */ | 109 GList *transactions; /* check ack packet and resend */ |
114 | 110 |
115 guint32 uid; /* QQ number */ | 111 guint32 uid; /* QQ number */ |
116 guint8 *token; /* get from server*/ | 112 guint8 *token; /* get from server*/ |
117 int token_len; | 113 int token_len; |
121 guint8 session_md5[QQ_KEY_LENGTH]; /* concatenate my uid with session_key and md5 it */ | 117 guint8 session_md5[QQ_KEY_LENGTH]; /* concatenate my uid with session_key and md5 it */ |
122 | 118 |
123 guint16 send_seq; /* send sequence number */ | 119 guint16 send_seq; /* send sequence number */ |
124 guint8 login_mode; /* online of invisible */ | 120 guint8 login_mode; /* online of invisible */ |
125 gboolean is_login; /* used by qq-add_buddy */ | 121 gboolean is_login; /* used by qq-add_buddy */ |
122 gboolean is_finish_update; | |
126 | 123 |
127 PurpleXfer *xfer; /* file transfer handler */ | 124 PurpleXfer *xfer; /* file transfer handler */ |
128 | 125 |
129 /* get from login reply packet */ | 126 /* get from login reply packet */ |
130 time_t login_time; | 127 time_t login_time; |