Alter the way PINGs for /sping and lag check are used.

We now send PING <server> :<server> for /spings, and
PING LAG!<cookie>.<tv_sec>.<tv_usec> :<server> for lag checks.  The cookie is
set randomly at server connect time, and means that clients connected to the
same bouncer shouldn't act on each other's lag checks.

We can now remove in_sping entirely - previously it would get out of synch if
you disconnected with a sping in progress.
This commit is contained in:
Kevin Easton
2015-05-04 00:13:08 +10:00
parent 443b87a8aa
commit 9f7cf6b6c2
6 changed files with 109 additions and 101 deletions

View File

@@ -80,7 +80,6 @@ extern LastMsg last_sent_ctcp[2];
void BX_addtabkey (char *, char *, int);
void clear_array (NickTab **, char *);
char *BX_random_str (int, int);
int check_serverlag (void);
void check_auto_away (time_t);
ChannelList * BX_prepare_command (int *, char *, int);
int rename_file (char *, char **);