mirror of
https://github.com/KeyZox71/webserv.git
synced 2026-09-23 19:10:07 +02:00
「✨」 feat(Resource): added resource abstract class :D
This commit is contained in:
1 parent
42758d150c
commit
5a22af3c5a
2 files changed
+76
No files matched your search
@@ -0,0 +1,34 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* 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
|
||||
Reference in new issue
Block a user