1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00
irssi/src/core/servers-reconnect.h
2019-05-01 22:22:22 +02:00

24 lines
549 B
C

#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