You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
559 B
27 lines
559 B
/* $id:$ */
|
|
|
|
#define BC_MAXENTRYS 64
|
|
#define BC_REQUESTTIME 2500
|
|
#define BC_REQUESTTIMEOUT 7500
|
|
|
|
struct broadcast_entry {
|
|
char port[LEN_PORT];
|
|
char host[LEN_SERVERNAME];
|
|
char gamename[LEN_GAMENAME];
|
|
char version[LEN_VERSION];
|
|
int ping;
|
|
int password;
|
|
int curplayers;
|
|
int maxplayers;
|
|
int timestamp;
|
|
};
|
|
|
|
extern struct broadcast_entry broadcast_list [];
|
|
|
|
extern void broadcast_send (char *host, char *port);
|
|
void broadcast_init ();
|
|
void broadcast_loop ();
|
|
int broadcast_find (char *host, char *port);
|
|
int broadcast_findfree ();
|
|
void broadcast_check ();
|