diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/socketengine.h | 4 | ||||
-rw-r--r-- | include/socketengine_epoll.h | 2 | ||||
-rw-r--r-- | include/socketengine_kqueue.h | 2 | ||||
-rw-r--r-- | include/socketengine_select.h | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/include/socketengine.h b/include/socketengine.h index 55f8516f9..557c314c6 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -94,7 +94,7 @@ class EventHandler : public Extensible * is still added to a SocketEngine instance! * If this function is unimplemented, the base class * will return true. - * + * * NOTE: You cannot set both Readable() and * Writeable() to true. If you wish to receive * a write event for your object, you must call @@ -227,7 +227,7 @@ public: * @param eh The event handler object to remove * @return True if the event handler was removed */ - virtual bool DelFd(EventHandler* eh); + virtual bool DelFd(EventHandler* eh, bool force = false); /** Returns true if a file descriptor exists in * the socket engine's list. diff --git a/include/socketengine_epoll.h b/include/socketengine_epoll.h index ca71fb500..d61e8e865 100644 --- a/include/socketengine_epoll.h +++ b/include/socketengine_epoll.h @@ -45,7 +45,7 @@ public: virtual bool AddFd(EventHandler* eh); virtual int GetMaxFds(); virtual int GetRemainingFds(); - virtual bool DelFd(EventHandler* eh); + virtual bool DelFd(EventHandler* eh, bool force); virtual int DispatchEvents(); virtual std::string GetName(); virtual void WantWrite(EventHandler* eh); diff --git a/include/socketengine_kqueue.h b/include/socketengine_kqueue.h index d1f59c47b..505607dae 100644 --- a/include/socketengine_kqueue.h +++ b/include/socketengine_kqueue.h @@ -49,7 +49,7 @@ public: virtual bool AddFd(EventHandler* eh); virtual int GetMaxFds(); virtual int GetRemainingFds(); - virtual bool DelFd(EventHandler* eh); + virtual bool DelFd(EventHandler* eh, bool force); virtual int DispatchEvents(); virtual std::string GetName(); virtual void WantWrite(EventHandler* eh); diff --git a/include/socketengine_select.h b/include/socketengine_select.h index f1392dda6..ed774f5c1 100644 --- a/include/socketengine_select.h +++ b/include/socketengine_select.h @@ -50,7 +50,7 @@ public: virtual bool AddFd(EventHandler* eh); virtual int GetMaxFds(); virtual int GetRemainingFds(); - virtual bool DelFd(EventHandler* eh); + virtual bool DelFd(EventHandler* eh, bool force); virtual int DispatchEvents(); virtual std::string GetName(); virtual void WantWrite(EventHandler* eh); |