mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-11 01:48:47 +02:00
「✏️」 norm(includes): cleaned headers
This commit is contained in:
@ -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());
|
||||
|
Reference in New Issue
Block a user