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();