summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index d8aacbb..907412d 100644
--- a/src/net.h
+++ b/src/net.h
@@ -2,6 +2,7 @@
#define OXEN_NET_H
#include <stdint.h>
+#include "player.h"
typedef enum
{
@@ -24,6 +25,11 @@ typedef struct
int server_start(const char* port);
int* server_get_players(int serversock, const uint8_t count);
+void server_start_game(int* clients, const uint8_t clientcount, const struct player_list* players);
+void* server_recv(int sock, uint8_t wanted);
+
int client_connect_server(const char* host, const char* port);
+void client_hello(int sock, const char* username);
+void* client_recv(int sock, uint8_t wanted);
#endif // OXEN_NET_H