|
Webserv
|
Abstract base class defining the interface for event-driven service handlers. More...
#include <IEventHandler.hpp>
Public Member Functions | |
| virtual | ~IEventHandler () |
| virtual void | handleEvent (uint32_t events)=0 |
| virtual int | getFd () const =0 |
Protected Member Functions | |
| IEventHandler () | |
Private Member Functions | |
| IEventHandler (const IEventHandler &) | |
| IEventHandler & | operator= (const IEventHandler &) |
Private Attributes | |
| uint32_t | registeredEvents_ |
| Shadow State. Stores the events currently registered in epoll. Prevents redundant syscalls. | |
Friends | |
| class | EventDispatcher |
Abstract base class defining the interface for event-driven service handlers.
Provides the hook method interface that concrete handlers (Acceptor, ClientHandler) must implement to process specific types of events. Event handlers register with the InitiationDispatcher and receive callbacks when events occur, detected by the epoll() mechanism, on their associated file descriptors (listeningFd, clientFd). This forms the core abstraction in the ClientHandler pattern for service-specific processing.
virtual void handleEvent(uint32_t events) = 0; // Pure virtual - must implement virtual int getFd() const = 0; // Returns file
|
virtual |
|
protected |
|
private |
|
pure virtual |
Implemented in network::Acceptor, network::CGIHandler, and network::ClientHandler.
|
pure virtual |
Implemented in network::Acceptor, network::CGIHandler, and network::ClientHandler.
|
private |
|
friend |
|
private |
Shadow State. Stores the events currently registered in epoll. Prevents redundant syscalls.