From 939cb0ba987f927f1ad900d45f98ba6d8e03e9d4 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 26 Sep 2009 01:43:09 +0000 Subject: Clean up SocketEngine interface to allow edge-triggered I/O and sockets that do not force readability. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11760 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socketengines/socketengine_ports.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/socketengines/socketengine_ports.h') diff --git a/include/socketengines/socketengine_ports.h b/include/socketengines/socketengine_ports.h index 03df456f2..be8c4bad2 100644 --- a/include/socketengines/socketengine_ports.h +++ b/include/socketengines/socketengine_ports.h @@ -42,9 +42,8 @@ public: /** Delete a PortsEngine */ virtual ~PortsEngine(); - virtual bool AddFd(EventHandler* eh, bool writeFirst = false); - virtual int GetMaxFds(); - virtual int GetRemainingFds(); + virtual bool AddFd(EventHandler* eh, int event_mask); + void OnSetEvent(EventHandler* eh, int old_event, int new_event); virtual bool DelFd(EventHandler* eh, bool force = false); virtual int DispatchEvents(); virtual std::string GetName(); -- cgit v1.2.3