From 763e3b2c9f12807da538fc845d6a5f2173a6feef Mon Sep 17 00:00:00 2001 From: psychon Date: Fri, 26 Jun 2009 08:45:08 +0000 Subject: [PATCH] Update to latest Csocket git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1546 726aef4b-f618-498e-8847-2d620e286838 --- Csocket.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Csocket.h b/Csocket.h index f6d542f5..eaf7fc02 100644 --- a/Csocket.h +++ b/Csocket.h @@ -28,7 +28,7 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * -* $Revision: 1.207 $ +* $Revision: 1.209 $ */ // note to compile with win32 need to link to winsock2, using gcc its -lws2_32 @@ -1820,6 +1820,12 @@ public: return( iRet ); } +protected: + //! this is a strict wrapper around C-api select(). Added in the event you need to do special work here + virtual int Select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) + { + return( select( nfds, readfds, writefds, exceptfds, timeout ) ); + } private: /** * fills a map of socks to a message for check @@ -1958,9 +1964,9 @@ private: if ( bHasWriteable ) - iSel = select(FD_SETSIZE, &rfds, &wfds, NULL, &tv); + iSel = Select(FD_SETSIZE, &rfds, &wfds, NULL, &tv); else - iSel = select(FD_SETSIZE, &rfds, NULL, NULL, &tv); + iSel = Select(FD_SETSIZE, &rfds, NULL, NULL, &tv); if ( iSel == 0 ) { if ( mpeSocks.empty() )