working server and gameloop
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user