summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-30 18:22:36 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-30 18:22:36 +0000
commitdd168c56c95a870de3d178edda48507ca47168fe (patch)
treeccb5fecc49eb49286600edc250ff414fbb6d2931 /include
parent2aa6c66308126842ce386a3c3d699dd8ab505bdf (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/socketengine.h2
-rw-r--r--include/socketengine_epoll.h1
2 files changed, 3 insertions, 0 deletions
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