src/network.h

changeset 43
12141136a0da
parent 41
a8346dcf7bbf
child 44
1891d88cbd10
--- a/src/network.h	Wed Apr 16 21:57:53 2014 +0200
+++ b/src/network.h	Wed Apr 16 22:20:59 2014 +0200
@@ -37,18 +37,18 @@
 extern "C" {
 #endif
     
-#define NETCODE_ACCEPT 0x00
-#define NETCODE_DECLINE 0x01
+#define NETCODE_ACCEPT 0x02
+#define NETCODE_DECLINE 0x04
 #define NETCODE_GAMEINFO 0x10
 #define NETCODE_MOVE 0x20
-#define NETCODE_SURRENDER 0x21
-#define NETCODE_REMIS 0x22
-#define NETCODE_CHECK 0x23
+#define NETCODE_CHECK 0x22
 #define NETCODE_CHECKMATE 0x24
-#define NETCODE_STALEMATE 0x25
-#define NETCODE_TIMEOVER 0x26
+#define NETCODE_STALEMATE 0x28
+#define NETCODE_SURRENDER 0x41
+#define NETCODE_REMIS 0x42
+#define NETCODE_TIMEOVER 0x44
 
-#define NETCODE_VERSION 12
+#define NETCODE_VERSION 13
 
 typedef struct {
     int fd; /* -1, if we are the client */

mercurial