aboutsummaryrefslogtreecommitdiffstats
path: root/account.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-08-06 00:07:07 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2008-08-06 00:07:07 +0100
commit280e655722c8660ec2dff9b08f82b10d5559bfd9 (patch)
tree9343c9649ab1f642956b999d1fd37dd2464f6085 /account.h
parentd84e2a93feae8db909dfbe63b55066cb4e8160dc (diff)
Simple exponential backoff code. Have to add a maximum delay setting,
something like 5*5<300: 5s, multiply by 5 on each failure, but stop increasing once we hit 5m.
Diffstat (limited to 'account.h')
-rw-r--r--account.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/account.h b/account.h
index a81ca928..2aef80a2 100644
--- a/account.h
+++ b/account.h
@@ -34,6 +34,7 @@ typedef struct account
char *server;
int auto_connect;
+ int auto_reconnect_delay;
int reconnect;
set_t *set;
@@ -51,6 +52,8 @@ void account_on( irc_t *irc, account_t *a );
void account_off( irc_t *irc, account_t *a );
char *set_eval_account( set_t *set, char *value );
+char *set_eval_account_reconnect_delay( set_t *set, char *value );
+int account_reconnect_delay( account_t *a );
#define ACC_SET_NOSAVE 1
#define ACC_SET_OFFLINE_ONLY 2