Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/servconn.h @ 27701:4fb5e292de75
Timeout switchboard connections at 60 seconds, should Fixes #3330 for most
people.
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sun, 19 Jul 2009 17:41:38 +0000 |
parents | d8452c0bec7b |
children | 8e31eec7b621 |
comparison
equal
deleted
inserted
replaced
27700:5299547556ae | 27701:4fb5e292de75 |
---|---|
86 It's only set when we've received a command that | 86 It's only set when we've received a command that |
87 has a payload. */ | 87 has a payload. */ |
88 | 88 |
89 PurpleCircBuffer *tx_buf; | 89 PurpleCircBuffer *tx_buf; |
90 guint tx_handler; | 90 guint tx_handler; |
91 guint timeout_sec; | |
92 guint timeout_handle; | |
91 | 93 |
92 void (*connect_cb)(MsnServConn *); /**< The callback to call when connecting. */ | 94 void (*connect_cb)(MsnServConn *); /**< The callback to call when connecting. */ |
93 void (*disconnect_cb)(MsnServConn *); /**< The callback to call when disconnecting. */ | 95 void (*disconnect_cb)(MsnServConn *); /**< The callback to call when disconnecting. */ |
94 void (*destroy_cb)(MsnServConn *); /**< The callback to call when destroying. */ | 96 void (*destroy_cb)(MsnServConn *); /**< The callback to call when destroying. */ |
95 }; | 97 }; |
176 * | 178 * |
177 * @param servconn The servconn. | 179 * @param servconn The servconn. |
178 */ | 180 */ |
179 void msn_servconn_process_data(MsnServConn *servconn); | 181 void msn_servconn_process_data(MsnServConn *servconn); |
180 | 182 |
183 /** | |
184 * Set a idle timeout fot this servconn | |
185 * | |
186 * @param servconn The servconn | |
187 * @param seconds The idle timeout in seconds | |
188 */ | |
189 void msn_servconn_set_idle_timeout(MsnServConn *servconn, guint seconds); | |
190 | |
181 #endif /* _MSN_SERVCONN_H_ */ | 191 #endif /* _MSN_SERVCONN_H_ */ |