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() )