This commit is contained in:
Nishi 2025-12-19 02:38:21 +09:00
commit 17d5032814
Signed by: nishi
GPG key ID: 27EF69B208EB9343
12 changed files with 4504 additions and 6 deletions

8
include/af_client.h Normal file
View file

@ -0,0 +1,8 @@
#ifndef __AF_CLIENT_H__
#define __AF_CLIENT_H__
#include <glad/glad.h>
#include <Mw/Milsko.h>
#include <Mw/Widget/OpenGL.h>
#endif

26
include/af_common.h Normal file
View file

@ -0,0 +1,26 @@
#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;
char* name;
} af_pkt_join_t;
#endif

4
include/af_server.h Normal file
View file

@ -0,0 +1,4 @@
#ifndef __AF_SERVER_H__
#define __AF_SERVER_H__
#endif