This update changes the server list layout and adds server pinging and querying support. Use 'p' to update pings, 's' to update status information, and 'u' to do both at once. Feel free to abuse this and report any bugs that you find.

This commit is contained in:
Brian Koropoff 2000-12-25 02:36:36 +00:00
parent e537c27a70
commit 0210465303
4 changed files with 221 additions and 30 deletions

View file

@ -36,6 +36,10 @@
typedef struct server_entry_s {
char *server;
char *desc;
char *status;
int waitstatus;
struct timeval pingsent;
struct timeval pongback;
struct server_entry_s *next;
struct server_entry_s *prev;
} server_entry_t;
@ -58,4 +62,5 @@ void SL_Shutdown(server_entry_t *start);
char *gettokstart(char *str, int req, char delim);
int gettoklen(char *str, int req, char delim);
void timepassed (struct timeval *time1, struct timeval *time2);
#endif // _CL_SLIST_H