diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:18:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:18:39 +0000 |
commit | fff5217f02d91268ce90c8c05665602c059faaef (patch) | |
tree | 2ba24d32dc96eafe7ed0a85269548e76796d849d /src/core/servers-reconnect.h | |
parent | Initial commit. (diff) | |
download | irssi-upstream.tar.xz irssi-upstream.zip |
Adding upstream version 1.4.5.upstream/1.4.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/core/servers-reconnect.h')
-rw-r--r-- | src/core/servers-reconnect.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/core/servers-reconnect.h b/src/core/servers-reconnect.h new file mode 100644 index 0000000..b98f517 --- /dev/null +++ b/src/core/servers-reconnect.h @@ -0,0 +1,23 @@ +#ifndef IRSSI_CORE_SERVERS_RECONNECT_H +#define IRSSI_CORE_SERVERS_RECONNECT_H + +/* wait for half an hour before trying to reconnect to host where last + connection failed */ +#define FAILED_RECONNECT_WAIT (60*30) + +typedef struct { + int tag; + time_t next_connect; + + SERVER_CONNECT_REC *conn; +} RECONNECT_REC; + +extern GSList *reconnects; + +void reconnect_save_status(SERVER_CONNECT_REC *conn, SERVER_REC *server); +void server_reconnect_destroy(RECONNECT_REC *rec); + +void servers_reconnect_init(void); +void servers_reconnect_deinit(void); + +#endif |