🔨」 fix: adapted constructor to the new config file

This commit is contained in:
2025-04-14 13:43:42 +02:00
parent 612cece2d0
commit 42ab0cfc97
2 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/11 17:45:43 by adjoly #+# #+# */
/* Updated: 2025/04/12 15:39:14 by mmoussou ### ########.fr */
/* Updated: 2025/04/14 13:42:20 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -23,7 +23,7 @@ namespace webserv {
class Server {
public:
Server(config::Server *);
Server(config::Config *);
~Server(void);
protected:
@ -44,7 +44,7 @@ class Server {
*/
void _handle_client(int fd);
config::Server
config::Config
*_conf; ///> Pointer to the configuration class (with all config in)
Logger *_log; ///> Pointer to the log class
int _fd_server; ///> The fd of the socket

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/11 16:11:40 by adjoly #+# #+# */
/* Updated: 2025/04/13 11:53:40 by mmoussou ### ########.fr */
/* Updated: 2025/04/14 13:41:59 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -151,7 +151,7 @@ void Server::_run(void)
}
}
Server::Server(config::Server *conf) : _conf(conf) {
Server::Server(config::Config *conf) : _conf(conf) {
log("", "Server::Server", "config constructor called");
_log = conf->getLogger();
_setup();