I broke something with displaying the clients input plainly

This commit is contained in:
ouafabulous 2025-05-21 21:52:20 +02:00
parent b2c5e0f5d7
commit bfe88daf3e
10 changed files with 292 additions and 186 deletions

View file

@ -1,26 +1,28 @@
/* ************************************************************************** */
/******************************************************************************/
/* */
/* ::: :::::::: */
/* server.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* By: omoudni <omoudni@student.42paris.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/05/20 21:50:32 by rparodi #+# #+# */
/* Updated: 2025/05/21 13:03:01 by rparodi ### ########.fr */
/* Updated: 2025/05/21 21:19:47 by omoudni ### ########.fr */
/* */
/* ************************************************************************** */
/******************************************************************************/
#pragma once
#include <string>
#include "PollManager.hpp"
#include "core.hpp"
class User;
class Server {
private:
int _port;
int _serverFd;
std::string _password;
PollManager _pollManager;
std::map<int, User*> _users;
public:
Server(int port, const std::string &password);
~Server();