diff -r daaf6e5b3501 -r 41468077b5bb src/network.h --- a/src/network.h Wed Mar 19 10:08:25 2014 +0100 +++ b/src/network.h Wed Mar 19 15:36:54 2014 +0100 @@ -40,8 +40,11 @@ #define NETCODE_ACCEPT 0x00 #define NETCODE_DECLINE 0x01 #define NETCODE_GAMEINFO 0x10 +#define NETCODE_MOVE 0x20 +#define NETCODE_SURRENDER 0x21 +#define NETCODE_REMIS 0x22 -#define NETCODE_VERSION 1 +#define NETCODE_VERSION 3 typedef struct { int fd; /* -1, if we are the client */ @@ -64,7 +67,7 @@ void net_send_code(int socket, uint32_t code); void net_send_data(int socket, void *data, size_t len); -int net_recieve_code(int socket); +uint32_t net_recieve_code(int socket); void net_recieve_data(int socket, void *data, size_t len);