Added missing Event::type_name() functions.

This commit is contained in:
Jari Sundell
2025-12-13 11:06:02 +01:00
committed by GitHub
parent 8806c06f9f
commit 16ff32b88c
2 changed files with 10 additions and 6 deletions
+5 -3
View File
@@ -14,12 +14,14 @@ public:
InputEvent(int fd) { m_fileDesc = fd; }
const char* type_name() const override { return "input"; }
void insert(torrent::net::Poll* p);
void remove(torrent::net::Poll* p);
void event_read();
void event_write();
void event_error();
void event_read() override;
void event_write() override;
void event_error() override;
void slot_pressed(slot_int s) { m_slotPressed = s; }
+5 -3
View File
@@ -23,6 +23,8 @@ public:
SCgiTask() { m_fileDesc = -1; }
const char* type_name() const override { return "scgi-task"; }
bool is_open() const { return m_fileDesc != -1; }
bool is_available() const { return m_fileDesc == -1; }
@@ -31,9 +33,9 @@ public:
ContentType content_type() const { return m_content_type; }
virtual void event_read();
virtual void event_write();
virtual void event_error();
void event_read() override;
void event_write() override;
void event_error() override;
utils::SocketFd& get_fd() { return *reinterpret_cast<utils::SocketFd*>(&m_fileDesc); }