00001 00002 /* 00003 meta.h 00004 */ 00005 00006 #define LINE 80 /* Width of a meta-server line */ 00007 struct servers { 00008 char address[LINE]; /* host name or ip address of server */ 00009 int port; 00010 int age; /* age in seconds as received */ 00011 time_t when; /* date time this record received */ 00012 int refresh; /* data needs redisplaying */ 00013 int lifetime; /* remaining cache life of entry */ 00014 int players; 00015 int status; 00016 char typeflag; 00017 char comment[LINE]; 00018 }; 00019 00020 /* Global Variables */ 00021 00022 extern int num_servers; /* The number of servers in the list */ 00023 extern struct servers *serverlist; /* The record for each server. */ 00024 00025 /* Function Definitions */ 00026 00027 void parsemeta(int metaType); 00028 /* 00029 * Read and Parse the metaserver information, either from the metaservers 00030 * by UDP (1), from a single metaserver by TCP (3), or from the cache (2). 00031 * 00032 * NOTE: This function sets the variable "num_servers" which is 00033 * used in newwin() to set the height of the meta-server window. 00034 */ 00035