diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/socketengine_select.h | 4 |
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 |