Mercurial > ~mikael > mcabber > hg
view mcabber/mcabber/xmpp_muc.h @ 1747:c4f67e2e675f
Randomize reconnection delay
Conforming to rfc3920bis, 4.5:
"The time that expires before an entity first seeks to reconnect MUST be
randomized"
(We should still increase the delay if the reconnection keeps failing.)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 11 Mar 2010 22:27:36 +0100 |
parents | 1342df44c814 |
children | e6d355e50d7a |
line wrap: on
line source
#ifndef __MCABBER_XMPP_MUC_H__ #define __MCABBER_XMPP_MUC_H__ 1 typedef struct { char *to; char *from; char *passwd; char *reason; } event_muc_invitation; void destroy_event_muc_invitation(event_muc_invitation *invitation); void roompresence(gpointer room, void *presencedata); void got_muc_message(const char *from, LmMessageNode *x); void handle_muc_presence(const char *from, LmMessageNode * xmldata, const char *roomjid, const char *rname, enum imstatus ust, const char *ustmsg, time_t usttime, char bpprio); #endif /* __MCABBER_XMPP_MUC_H__ */ /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */