/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* server.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: sben-tay +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/05/13 11:06:56 by rparodi #+# #+# */ /* Updated: 2025/05/20 17:11:56 by sben-tay ### ########.fr */ /* */ /* ************************************************************************** */ #pragma once #include "core.hpp" #include #include "PollManager.hpp" class Server { public: Server(); Server(int port, const std::string &password); ~Server(); unsigned short int getPort() const; void showInfo() const; void setServerFd(int fd); void start(); private: unsigned short int _port; int _serverFd; std::string _password; PollManager _poll; };