Class DummyEventHandler
Defined in File agnocast_epoll.hpp
Inheritance Relationships
Base Type
public agnocast::EpollEventHandler(Class EpollEventHandler)
Class Documentation
-
class DummyEventHandler : public agnocast::EpollEventHandler
Dummy handler used to fill unused slots in the EventHandlerArray. Logs a warning if an event notification is unexpectedly received. Since EpollManager requires every slot in the EventHandlerArray to be populated with a valid handler, any slot corresponding to an unused event must be filled with a DummyEventHandler.
Public Functions
-
DummyEventHandler() = default
-
inline virtual EpollEventType get_type() const override
-
inline virtual void prepare_epoll(int epoll_fd, const CallbackGroupValidator &validate_callback_group) override
Configures event-specific settings, such as adding events to epoll.
- Parameters:
epoll_fd – The file descriptor for the epoll instance.
validate_callback_group – A function that takes a callback group and determines whether the entities belonging to that group are under its management.
-
virtual void handle(EpollEventLocalID event_local_id) override
Invoked when an event belonging to this event type occurs.
- Parameters:
event_local_id – The local ID used to identify the specific event.
-
DummyEventHandler() = default