sdlbomber/announce.h

28 lines
542 B
C
Raw Normal View History

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