mirror of
https://github.com/znc/znc.git
synced 2026-08-08 09:52:55 +02:00
Update to latest Csocket
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1546 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -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() )
|
||||
|
||||
Reference in New Issue
Block a user