mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
532d6c1e9d
in active server, irssi checks if some reconnection should be used instead. If there's one reconnection, /SERVER always uses it. If there's reconnection to same host, it will be used (+same port is preferred) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@870 dbcabf3a-b0e7-0310-adc4-f8d773084564
23 lines
463 B
C
23 lines
463 B
C
#ifndef __SERVER_RECONNECT_H
|
|
#define __SERVER_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 server_reconnect_destroy(RECONNECT_REC *rec, int free_conn);
|
|
|
|
void servers_reconnect_init(void);
|
|
void servers_reconnect_deinit(void);
|
|
|
|
#endif
|