summaryrefslogtreecommitdiff
path: root/include/socketengine_select.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-30 19:49:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-30 19:49:13 +0000
commit2a31fe603884449ff08f300fa43dc7c0770b71e2 (patch)
tree52d0b92c963b57ed437000530bd0f48ef8bafcd6 /include/socketengine_select.h
parentb8f4ba8214a9ae954c506dec354020b43849c346 (diff)
Select is now done, and some debug removed. Not that anyone really should be using select()...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5587 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/socketengine_select.h')
-rw-r--r--include/socketengine_select.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/socketengine_select.h b/include/socketengine_select.h
index f6c034091..053ebc8c6 100644
--- a/include/socketengine_select.h
+++ b/include/socketengine_select.h
@@ -36,6 +36,9 @@ private:
/** Because select() does not track an fd list for us between calls, we have one of our own
*/
std::map<int,int> fds;
+ /** List of writeable ones (WantWrite())
+ */
+ bool writeable[MAX_DESCRIPTORS];
/** The read set and write set, populated before each call to select().
*/
fd_set wfdset, rfdset;
@@ -53,6 +56,7 @@ public:
virtual bool DelFd(EventHandler* eh);
virtual int DispatchEvents();
virtual std::string GetName();
+ virtual void WantWrite(EventHandler* eh);
};
/** Creates a SocketEngine