src/network.h

changeset 182
04c65336777f
parent 181
8bda076d0a16
--- a/src/network.h	Sat Aug 22 15:15:52 2026 +0200
+++ b/src/network.h	Sat Aug 22 16:22:05 2026 +0200
@@ -70,6 +70,19 @@
     Client *client;
 } Server;
 
+typedef struct {
+    uint32_t mtime_sec;
+    uint32_t mtime_usec;
+    uint8_t piece;
+    uint8_t fromfile;
+    uint8_t fromrow;
+    uint8_t tofile;
+    uint8_t torow;
+    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