mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-06-25 09:33:36 +02:00
「🏗️」 wip: cgi workinggg
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/04/11 17:45:43 by adjoly #+# #+# */
|
||||
/* Updated: 2025/05/27 18:38:04 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/05/27 19:32:38 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -29,7 +29,7 @@ class Client;
|
||||
|
||||
class Server {
|
||||
public:
|
||||
Server(config::Config *);
|
||||
Server(void);
|
||||
~Server(void);
|
||||
|
||||
protected:
|
||||
@ -74,23 +74,14 @@ class Server {
|
||||
}
|
||||
|
||||
Client *_getClient(int);
|
||||
|
||||
config::Config
|
||||
* _conf; // Pointer to the configuration class (with all config in)
|
||||
Logger *_log; // Pointer to the log class
|
||||
std::vector<int> _fds_server; // The fds of the sockets
|
||||
// std::vector<struct pollfd> _client_fds; // A vector of all the poll fd
|
||||
std::vector<Client *> _client_data; // vector of all the client sockaddr_in
|
||||
|
||||
/**
|
||||
* @brief Can be used to handle a pollfd that is a server
|
||||
*/
|
||||
void _handle_srv(size_t i);
|
||||
|
||||
/**
|
||||
* @brief Can be used to handle pollfd taht is a client
|
||||
*/
|
||||
void _handle_client(size_t *i);
|
||||
void _handle_resource(size_t i);
|
||||
|
||||
};
|
||||
|
||||
}; // namespace server
|
||||
|
Reference in New Issue
Block a user