1.1 --- a/src/network.h Wed Mar 19 10:08:25 2014 +0100 1.2 +++ b/src/network.h Wed Mar 19 15:36:54 2014 +0100 1.3 @@ -40,8 +40,11 @@ 1.4 #define NETCODE_ACCEPT 0x00 1.5 #define NETCODE_DECLINE 0x01 1.6 #define NETCODE_GAMEINFO 0x10 1.7 +#define NETCODE_MOVE 0x20 1.8 +#define NETCODE_SURRENDER 0x21 1.9 +#define NETCODE_REMIS 0x22 1.10 1.11 -#define NETCODE_VERSION 1 1.12 +#define NETCODE_VERSION 3 1.13 1.14 typedef struct { 1.15 int fd; /* -1, if we are the client */ 1.16 @@ -64,7 +67,7 @@ 1.17 1.18 void net_send_code(int socket, uint32_t code); 1.19 void net_send_data(int socket, void *data, size_t len); 1.20 -int net_recieve_code(int socket); 1.21 +uint32_t net_recieve_code(int socket); 1.22 void net_recieve_data(int socket, void *data, size_t len); 1.23 1.24