Webserv
Loading...
Searching...
No Matches
IEventHandler.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5namespace network {
6
20public:
21 virtual ~IEventHandler();
22 virtual void handleEvent(uint32_t events) = 0;
23 virtual int getFd() const = 0;
24
25protected:
27
28private:
31
32 friend class EventDispatcher;
33
40};
41
42} // namespace network
IEventHandler(const IEventHandler &)
IEventHandler & operator=(const IEventHandler &)
virtual void handleEvent(uint32_t events)=0
virtual int getFd() const =0
IEventHandler()
Definition IEventHandler.cpp:5
friend class EventDispatcher
Definition IEventHandler.hpp:32
virtual ~IEventHandler()
Definition IEventHandler.cpp:7
uint32_t registeredEvents_
Shadow State. Stores the events currently registered in epoll. Prevents redundant syscalls.
Definition IEventHandler.hpp:39
Definition Request.hpp:13