style(server): moving to directory header

This commit is contained in:
Raphael 2025-05-20 22:16:36 +02:00
parent cb5334a206
commit 4658e6650b

30
include/server.hpp Normal file
View file

@ -0,0 +1,30 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* server.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/05/20 21:50:32 by rparodi #+# #+# */
/* Updated: 2025/05/20 21:53:29 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
#include <string>
#include "PollManager.hpp"
class Server {
private:
int _port;
int _server_fd;
std::string _password;
PollManager _poll_manager;
public:
Server(int port, const std::string &password);
~Server();
void start();
int getPort() const;
void showInfo() const;
};