Changeset 32320 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Sep 8, 2010 1:52:49 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 65661
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/socket.cpp
r32276 r32320 29 29 * Header Files * 30 30 *******************************************************************************/ 31 #define LOG_ENABLED32 31 #ifdef RT_OS_WINDOWS 33 32 # include <winsock2.h> … … 294 293 * @param ppSocket Where to return the IPRT socket handle. 295 294 * @param hNative The native handle. 296 297 295 */ 298 296 int rtSocketCreateForNative(RTSOCKETINT **ppSocket, RTSOCKETNATIVE hNative) … … 1498 1496 if (RT_FAILURE(rc)) 1499 1497 { 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 */ 1524 1499 } 1525 1500
Note:
See TracChangeset
for help on using the changeset viewer.