summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2023-02-15 22:46:47 -0600
committerDanny Holman <dholman@gymli.org>2023-02-15 22:46:47 -0600
commitf5ffe47cab376672c8dec6cfedf84d83e5dcafff (patch)
treea3c3c75feb579e53421496b8f39f885fe52d9ccb /server
parentec9f8a5b55663cf5bc21c605787c7c83594f8719 (diff)
session: add an alive flag to struct session
Add a flag to struct session that indicates whether or not the underlying socket is still open. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'server')
-rw-r--r--server/include/session.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/include/session.h b/server/include/session.h
index 2de8293..4491f12 100644
--- a/server/include/session.h
+++ b/server/include/session.h
@@ -6,6 +6,7 @@
struct session {
int id;
int socket;
+ int alive;
struct list_head list;
};