wm: glendy

Download patch

ref: b88749cec55aede69e7684f61694062c743fff1a
parent: 97bdccaf59f7f9844294987b8d07c2ee3488d47c
author: mkf <mkf@cloud9p.org>
date: Fri Jun 7 11:22:13 EDT 2024

srv.h: add times into client, add clients into games

--- a/srv.h
+++ b/srv.h
@@ -6,6 +6,20 @@
 
 typedef struct
 {
+	int fd;
+	char *nick;
+	int game;	
+	int side;
+	int opts;
+	int state;
+	long firstseen;
+	long lastseen;
+	
+	void *thread;
+}Client;
+
+typedef struct
+{
 	int id;
 	int difficulty;
 	int state;
@@ -13,14 +27,5 @@
 	int sockfd[2];
 	int grid[SzX][SzY];
 	char syncmsg[8];
+	Client clients[2];
 }Game;
-
-typedef struct
-{
-	int fd;
-	char *nick;
-	int game;	
-	int side;
-	int opts;
-	void *thread;
-}Client;