Changeset 14085 in vbox
- Timestamp:
- Nov 11, 2008 11:46:20 AM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r14041 r14085 374 374 */ 375 375 cElements = 1; 376 for (so = tcb.so_next; so != &tcb; so = so_next, cElements++) 377 376 for (so = tcb.so_next; so != &tcb; so = so_next, cElements++) 377 so_next = so->so_next; 378 378 for (so = udb.so_next; so != &udb; so = so_next, cElements++) 379 379 so_next = so->so_next; 380 380 if (pData->phEvents != NULL) 381 381 free(pData->phEvents); … … 497 497 UPD_NFDS(so->s); 498 498 #else 499 rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ); 499 WSAResetEvent(so->hNetworkEvent); 500 rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_OOB|FD_ACCEPT); 500 501 AssertRelease(rc != SOCKET_ERROR); 501 502 pData->phEvents[cEvents] = so->hNetworkEvent; … … 582 583 for (so = tcb.so_next; so != &tcb; so = so_next) { 583 584 so_next = so->so_next; 585 586 /* 587 * FD_ISSET is meaningless on these sockets 588 * (and they can crash the program) 589 */ 590 if (so->so_state & SS_NOFDREF || so->s == -1) 591 continue; 584 592 #if defined(VBOX_WITH_SIMPLEFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS) 585 593 rc = WSAEnumNetworkEvents(so->s, so->hNetworkEvent, &NetworkEvents); 586 594 AssertRelease(rc != SOCKET_ERROR); 587 595 #endif 588 589 /*590 * FD_ISSET is meaningless on these sockets591 * (and they can crash the program)592 */593 if (so->so_state & SS_NOFDREF || so->s == -1)594 continue;595 596 596 597 /* -
trunk/src/VBox/Devices/Network/slirp/socket.c
r14028 r14085 61 61 so->s = -1; 62 62 #if defined(VBOX_WITH_SIMPLEFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS) 63 WSACreateEvent(so->hNetworkEvent); /*XXX: NOT correct place*/ 63 so->hNetworkEvent = WSACreateEvent(); /*XXX: NOT correct place*/ 64 AssertRelease(so->hNetworkEvent != WSA_INVALID_EVENT); 64 65 #endif 65 66 }
Note:
See TracChangeset
for help on using the changeset viewer.