working server and gameloop

This commit is contained in:
arizotaz committed 2026-04-26 13:44:54 -04:00
1 parent 81488417d9
commit 3607c4bf36
8 files changed
+194 -116

No files matched your search

+2 -1
View File
@@ -7,8 +7,9 @@
#include <netdb.h>
Server StartServer(int port) {
Server s = {2};
Server s;
s.clientID = 0;
s.client_count = 0;
// Create Socket
+2 -2
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