working server and gameloop

This commit is contained in:
2026-04-26 13:44:54 -04:00
parent 81488417d9
commit 3607c4bf36
8 changed files with 194 additions and 116 deletions

View File

@@ -3,8 +3,9 @@
#include <netinet/in.h>
#define MAX_SERVER_CLIENTS 2
typedef struct {
const int max_clients;
int server_fd;
struct sockaddr_in address;
int clients[2];
@@ -20,7 +21,6 @@ typedef struct {
struct sockaddr_in address;
} Client;
Client StartClient(char* host, int port);
#endif