From 434e75bb47b6c8a68379f7f79893806babe5f0d9 Mon Sep 17 00:00:00 2001 From: 3lswear Date: Thu, 24 Feb 2022 21:45:06 +0300 Subject: [PATCH] refactor: delete_fd and rename free_fd --- src/Server/Server.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Server/Server.hpp b/src/Server/Server.hpp index 861aa95..15e14f5 100644 --- a/src/Server/Server.hpp +++ b/src/Server/Server.hpp @@ -54,8 +54,11 @@ class Server struct timeval last_modif; }t_tmp_fd; bool TimeToDie(struct timeval &last_modif, int lifeTime); - int delete_fd(std::map &map, std::map::iterator &it); - std::map free_socket; +int delete_fd(std::map &map, + std::map::iterator &it, + std::map &client_map); + + std::map vacant_fds; public: Server();