mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 18:38:47 +02:00
「🔨」 fix: now working
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/04/14 14:14:39 by adjoly #+# #+# */
|
||||
/* Updated: 2025/04/25 13:20:13 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/04/25 14:33:54 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
#include <config/default.hpp>
|
||||
#include <netinet/in.h>
|
||||
#include <requests/default.hpp>
|
||||
#include <server/default.hpp>
|
||||
#include <server/Server.hpp>
|
||||
#include <webserv.hpp>
|
||||
|
||||
namespace webserv {
|
||||
@ -23,13 +23,20 @@ namespace server {
|
||||
|
||||
class Client {
|
||||
public:
|
||||
Client();
|
||||
Client(struct pollfd *, sockaddr_in, config::Config *);
|
||||
void parse(void);
|
||||
virtual ~Client(void);
|
||||
|
||||
void answer(void);
|
||||
|
||||
struct pollfd *getPollfd(void) const { return _pfd; }
|
||||
|
||||
bool operator==(int fd) {
|
||||
if (fd != _pfd->fd)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private:
|
||||
void _getRequest(std::string);
|
||||
|
||||
@ -38,7 +45,7 @@ class Client {
|
||||
http::IRequest *_request;
|
||||
// http::Response *_response;
|
||||
config::Server *_conf;
|
||||
config::Config *_Gconf;
|
||||
config::Config *_Gconf;
|
||||
};
|
||||
|
||||
} // namespace server
|
||||
|
Reference in New Issue
Block a user