Just send EOT to client for disconnect
This commit is contained in:
parent
80c5999a5a
commit
5518f3eea7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue