adding multiplayer
This commit is contained in:
@@ -2,13 +2,23 @@
|
||||
#define SERVER_H
|
||||
|
||||
#include "transactions.h"
|
||||
#include <time.h>
|
||||
|
||||
typedef struct {
|
||||
} client;
|
||||
int sock;
|
||||
int userId;
|
||||
} s_game_client;
|
||||
typedef struct {
|
||||
} client_manager;
|
||||
s_game_client clients[4];
|
||||
int number_of_clients;
|
||||
int sock;
|
||||
struct timespec current_time;
|
||||
|
||||
int start_server();
|
||||
} s_game_server;
|
||||
|
||||
int start_server(s_game_server* s);
|
||||
int accept_client(s_game_server* s);
|
||||
int server_update(s_game_server* gs);
|
||||
int get_player_data(s_game_server* s, int client);
|
||||
|
||||
#endif // !SERVER_H
|
||||
|
||||
Reference in New Issue
Block a user