/******************************************************************************/ /* */ /* ::: :::::::: */ /* server.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: omoudni +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/05/20 21:50:32 by rparodi #+# #+# */ /* Updated: 2025/05/21 21:19:47 by omoudni ### ########.fr */ /* */ /******************************************************************************/ #pragma once #include "core.hpp" class User; class Server { private: int _port; int _serverFd; std::string _password; PollManager _pollManager; std::map _users; public: Server(int port, const std::string &password); ~Server(); void start(); unsigned short int getPort() const; void showInfo() const; };