mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 20:48:46 +02:00
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* Resource.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/04/29 14:20:09 by mmoussou #+# #+# */
|
|
/* Updated: 2025/04/29 14:58:45 by mmoussou ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <poll.h>
|
|
|
|
namespace webserv {
|
|
namespace server {
|
|
|
|
class ClientResource {
|
|
public:
|
|
virtual ~ClientResource() {}
|
|
|
|
void addFileDescriptor(struct pollfd fd);
|
|
struct pollfd getFileDescriptor();
|
|
|
|
private:
|
|
struct pollfd _fd;
|
|
|
|
};
|
|
|
|
} // -namepsace server
|
|
} // -namespace webserv
|