/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* AResource.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: mmoussou #include namespace webserv { namespace server { enum clientResType { CGI_IN, CGI, UP_FILE }; class AClientResource { public: virtual ~AClientResource() {} bool operator==(int i) const { if (i == _fd) return true; return false; } virtual clientResType type(void) const = 0; int getId(void) const { return _fd; } virtual void process(void) = 0; bool isProcessed(void) const { return _processed; } virtual bool isReady(void) const = 0; virtual short event(void) const = 0; protected: int _fd; bool _processed; short _pfd_event; }; } // namespace server } // namespace webserv