Changing Project Structure

This commit is contained in:
arizotaz committed 2026-04-26 13:48:26 -04:00
1 parent 3607c4bf36
commit 8a4812973c
9 files changed
+8 -10

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
#ifndef GAME_NETWORKING_H
#define GAME_NETWORKING_H 1
#include <netinet/in.h>
#define MAX_SERVER_CLIENTS 2
typedef struct {
int server_fd;
struct sockaddr_in address;
int clients[2];
int clientID;
int client_count;
} Server;
Server StartServer(int port);
void RemoveClient(Server* s, int index);
typedef struct {
int client_fd;
struct sockaddr_in address;
} Client;
Client StartClient(char* host, int port);
#endif