From 2a31fe603884449ff08f300fa43dc7c0770b71e2 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 30 Oct 2006 19:49:13 +0000 Subject: 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 --- include/socketengine_select.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 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 -- cgit v1.2.3