assaultfish/include/af_common.h

26 lines
418 B
C
Raw Normal View History

2025-12-19 02:38:21 +09:00
#ifndef __AF_COMMON_H__
#define __AF_COMMON_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fishsoup.h>
#ifdef AF_SERVER
#include <af_server.h>
#endif
#ifdef AF_CLIENT
#include <af_client.h>
#endif
#define AF_DEFAULT_PORT 5312
/* should be broadcasted! otherwise other user wouldn't know */
typedef struct af_pkt_join {
unsigned char length;
2025-12-19 03:10:03 +09:00
char* name;
2025-12-19 02:38:21 +09:00
} af_pkt_join_t;
#endif