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
542 B

#ifndef ANNOUNCE_H
#define ANNOUNCE_H
#include <netinet/in.h>
typedef struct gamelistentry gamelistentry;
struct gamelistentry {
struct sockaddr_in netname;
char name[16];
int registergame(const char *playername, uint16_t port, const unsigned char version[4]);
void unregistergame(void);
int searchgames(void);
int find_more_games(void);
void stop_search(void);
int initannouncer(void);
void freeannouncer(void);
extern gamelistentry gamelistentries[GAMELIST_MAXSIZE];
extern int gamelistsize;