From 5518f3eea7d8a1b94c5f52362ff60d6b0363bd59 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Wed, 26 Oct 2022 22:41:36 +0200 Subject: [PATCH] Just send EOT to client for disconnect --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 69a1f59..039ec20 100644 --- a/src/server.c +++ b/src/server.c @@ -131,7 +131,7 @@ int main(int argc, char *argv[]) { /* Disconnect all clients before closing the server */ for (int i = 0; i < MAX_CLIENTS; i++) { - write(clients[i].sockid, "disconnect command", 0); // TODO: decide a disconnect command to send + write(clients[i].sockid, &eot, 1); disconnect_client(i); }