Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/jabber.h @ 30184:3ac7f10d13d4
jabber: Send whitespace keepalives every two minutes of (outgoing) silence.
This works around stupid behavior of Openfire hopefully (otherwise we
may need to send a full IQ ping instead of a whitespace tab). Closes #10767
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 21 Apr 2010 19:07:19 +0000 |
parents | 6e598ca344b3 |
children | 552616f49f94 |
comparison
equal
deleted
inserted
replaced
30183:fb270a3d0732 | 30184:3ac7f10d13d4 |
---|---|
253 | 253 |
254 char *certificate_CN; | 254 char *certificate_CN; |
255 | 255 |
256 /* A purple timeout tag for the keepalive */ | 256 /* A purple timeout tag for the keepalive */ |
257 guint keepalive_timeout; | 257 guint keepalive_timeout; |
258 guint max_inactivity; | |
259 guint inactivity_timer; | |
258 | 260 |
259 PurpleSrvResponse *srv_rec; | 261 PurpleSrvResponse *srv_rec; |
260 guint srv_rec_idx; | 262 guint srv_rec_idx; |
261 guint max_srv_rec_idx; | 263 guint max_srv_rec_idx; |
262 | 264 |
346 * Returns true if this connection is over a secure (SSL) stream. Use this | 348 * Returns true if this connection is over a secure (SSL) stream. Use this |
347 * instead of checking js->gsc because BOSH stores its PurpleSslConnection | 349 * instead of checking js->gsc because BOSH stores its PurpleSslConnection |
348 * members in its own data structure. | 350 * members in its own data structure. |
349 */ | 351 */ |
350 gboolean jabber_stream_is_ssl(JabberStream *js); | 352 gboolean jabber_stream_is_ssl(JabberStream *js); |
353 | |
354 /** | |
355 * Restart the "we haven't sent anything in a while and should send | |
356 * something or the server will kick us off" timer (obviously | |
357 * called when sending something. It's exposed for BOSH.) | |
358 */ | |
359 void jabber_stream_restart_inactivity_timer(JabberStream *js); | |
351 | 360 |
352 /** PRPL functions */ | 361 /** PRPL functions */ |
353 const char *jabber_list_icon(PurpleAccount *a, PurpleBuddy *b); | 362 const char *jabber_list_icon(PurpleAccount *a, PurpleBuddy *b); |
354 const char* jabber_list_emblem(PurpleBuddy *b); | 363 const char* jabber_list_emblem(PurpleBuddy *b); |
355 char *jabber_status_text(PurpleBuddy *b); | 364 char *jabber_status_text(PurpleBuddy *b); |