mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 23:28:46 +02:00
「🔨」 fix: adapted constructor to the new config file
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/04/11 17:45:43 by adjoly #+# #+# */
|
/* 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 {
|
class Server {
|
||||||
public:
|
public:
|
||||||
Server(config::Server *);
|
Server(config::Config *);
|
||||||
~Server(void);
|
~Server(void);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -44,7 +44,7 @@ class Server {
|
|||||||
*/
|
*/
|
||||||
void _handle_client(int fd);
|
void _handle_client(int fd);
|
||||||
|
|
||||||
config::Server
|
config::Config
|
||||||
*_conf; ///> Pointer to the configuration class (with all config in)
|
*_conf; ///> Pointer to the configuration class (with all config in)
|
||||||
Logger *_log; ///> Pointer to the log class
|
Logger *_log; ///> Pointer to the log class
|
||||||
int _fd_server; ///> The fd of the socket
|
int _fd_server; ///> The fd of the socket
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/04/11 16:11:40 by adjoly #+# #+# */
|
/* 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("➕", "Server::Server", "config constructor called");
|
||||||
_log = conf->getLogger();
|
_log = conf->getLogger();
|
||||||
_setup();
|
_setup();
|
||||||
|
Reference in New Issue
Block a user