src/network.h

changeset 184
93c81539b702
parent 183
39aa77b7188b
--- a/src/network.h	Sun Aug 23 11:38:27 2026 +0200
+++ b/src/network.h	Sun Aug 23 12:19:05 2026 +0200
@@ -71,6 +71,14 @@
 } Server;
 
 typedef struct {
+    uint8_t servercolor;
+    uint8_t timecontrol;
+    uint16_t time;
+    uint16_t addtime;
+    uint16_t delay;
+} NetGameInfo;
+
+typedef struct {
     uint32_t mtime_sec;
     uint32_t mtime_usec;
     uint8_t piece;
@@ -81,8 +89,6 @@
     uint8_t promotion;
 } NetMove;
 
-#define NETMOVE_LEN 14
-
 int net_create_tcp(Server *server, short port);
 int net_find_tcp(Server *server, char* host, short port);
 

mercurial