Changeset 14160 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Nov 13, 2008 8:37:00 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 39252
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r14159 r14160 419 419 rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_ACCEPT|FD_CONNECT|FD_OOB); 420 420 AssertRelease(rc != SOCKET_ERROR); 421 pData->phEvents[cEvents] = so->hNetworkEvent;422 cEvents++;423 421 #endif 424 422 continue; … … 435 433 rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_ACCEPT|FD_CONNECT|FD_OOB); 436 434 AssertRelease(rc != SOCKET_ERROR); 437 pData->phEvents[cEvents] = so->hNetworkEvent;438 cEvents++;439 435 #endif 440 436 continue; … … 452 448 rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_ACCEPT|FD_CONNECT|FD_OOB); 453 449 AssertRelease(rc != SOCKET_ERROR); 454 pData->phEvents[cEvents] = so->hNetworkEvent;455 cEvents++;456 450 continue; /*XXX: we're using the widest mask for event*/ 457 451 #endif … … 470 464 rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_OOB|FD_READ|FD_WRITE|FD_ACCEPT|FD_CONNECT); 471 465 AssertRelease(rc != SOCKET_ERROR); 472 pData->phEvents[cEvents] = so->hNetworkEvent;473 cEvents++;474 466 continue; /*XXX: we're using the widest mask for event*/ 475 467 #endif … … 512 504 rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_OOB|FD_ACCEPT); 513 505 AssertRelease(rc != SOCKET_ERROR); 514 pData->phEvents[cEvents] = so->hNetworkEvent;515 cEvents++;516 506 #endif 517 507 } … … 555 545 *pnfds = nfds; 556 546 #else 557 *pnfds = cEvents;547 *pnfds = WSA_MAXIMUM_WAIT_EVENTS; 558 548 #endif 559 549 }
Note:
See TracChangeset
for help on using the changeset viewer.