✏️」 norm(includes): cleaned headers

This commit is contained in:
y-syo
2025-04-22 12:06:48 +02:00
parent 1bd83e15b0
commit b9b299cd68
19 changed files with 58 additions and 65 deletions

View File

@ -1,16 +1,16 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Socket.cpp :+: :+: :+: */
/* ServerUtils.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/17 11:58:42 by adjoly #+# #+# */
/* Updated: 2025/04/21 10:53:45 by adjoly ### ########.fr */
/* Updated: 2025/04/22 11:46:07 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
#include "server/Client.hpp"
#include <server/Client.hpp>
#include <netinet/in.h>
#include <server/default.hpp>
#include <sys/socket.h>
@ -81,7 +81,7 @@ bool Server::_handle_client(struct pollfd &pollfd, sockaddr_in *sock_data) {
Client *client;
try {
client = new Client(pollfd.fd, sock_data, _conf);
client = new Client(pollfd.fd, *sock_data, _conf);
client->answer();
} catch (std::exception &e) {
_log->error(e.what());