From dd168c56c95a870de3d178edda48507ca47168fe Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 30 Oct 2006 18:22:36 +0000 Subject: WARNING: This commit breaks kqueue and select -- work in progress! epoll now allows both a write and a read event on a socket at the same time. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5580 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socketengine.h | 2 ++ include/socketengine_epoll.h | 1 + 2 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/socketengine.h b/include/socketengine.h index 1b68f1685..9aa651499 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -179,6 +179,8 @@ public: */ virtual bool AddFd(EventHandler* eh); + virtual void WantWrite(EventHandler* eh); + /** Returns the maximum number of file descriptors * you may store in the socket engine at any one time. * @return The maximum fd value diff --git a/include/socketengine_epoll.h b/include/socketengine_epoll.h index 8e4d6308f..5eb69cf65 100644 --- a/include/socketengine_epoll.h +++ b/include/socketengine_epoll.h @@ -51,6 +51,7 @@ public: virtual bool DelFd(EventHandler* eh); virtual int DispatchEvents(); virtual std::string GetName(); + virtual void WantWrite(EventHandler* eh); }; /** Creates a SocketEngine -- cgit v1.2.3