VirtualBox

Changeset 32320 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Sep 8, 2010 1:52:49 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65661
Message:

oops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/socket.cpp

    r32276 r32320  
    2929*   Header Files                                                               *
    3030*******************************************************************************/
    31 #define LOG_ENABLED
    3231#ifdef RT_OS_WINDOWS
    3332# include <winsock2.h>
     
    294293 * @param   ppSocket        Where to return the IPRT socket handle.
    295294 * @param   hNative         The native handle.
    296 
    297295 */
    298296int rtSocketCreateForNative(RTSOCKETINT **ppSocket, RTSOCKETNATIVE hNative)
     
    14981496    if (RT_FAILURE(rc))
    14991497    {
    1500         WSAResetEvent(pThis->hEvent);
    1501         fd_set fdsetR;
    1502         fd_set fdsetW;
    1503         FD_ZERO(&fdsetR);
    1504         FD_ZERO(&fdsetW);
    1505         FD_SET(pThis->hNative, &fdsetR);
    1506         FD_SET(pThis->hNative, &fdsetW);
    1507 
    1508         fd_set fdsetE = fdsetR;
    1509 
    1510         struct timeval timeout;
    1511         timeout.tv_sec = 0;
    1512         timeout.tv_usec = 0;
    1513         rc = select(pThis->hNative + 1, &fdsetR, &fdsetW, &fdsetE, &timeout);
    1514         if (rc > 0)
    1515         {
    1516             rc = VINF_SUCCESS;
    1517             if (FD_ISSET(pThis->hNative, &fdsetR))
    1518                 fRetEvents |= RTPOLL_EVT_READ;
    1519             if (FD_ISSET(pThis->hNative, &fdsetW))
    1520                 fRetEvents |= RTPOLL_EVT_WRITE;
    1521             if (FD_ISSET(pThis->hNative, &fdsetE))
    1522                 fRetEvents |= RTPOLL_EVT_ERROR;
    1523         }
     1498        /** @todo  */
    15241499    }
    15251500
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette