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.

announce.h 542B

123456789101112131415161718192021222324252627
  1. #ifndef ANNOUNCE_H
  2. #define ANNOUNCE_H
  3. #include <netinet/in.h>
  4. typedef struct gamelistentry gamelistentry;
  5. struct gamelistentry {
  6. struct sockaddr_in netname;
  7. char name[16];
  8. };
  9. int registergame(const char *playername, uint16_t port, const unsigned char version[4]);
  10. void unregistergame(void);
  11. int searchgames(void);
  12. int find_more_games(void);
  13. void stop_search(void);
  14. int initannouncer(void);
  15. void freeannouncer(void);
  16. #define GAMELIST_MAXSIZE 10
  17. extern gamelistentry gamelistentries[GAMELIST_MAXSIZE];
  18. extern int gamelistsize;
  19. #endif