Changeset 14159 in vbox for trunk/src/VBox/Devices/Network/slirp/socket.c
- Timestamp:
- Nov 13, 2008 6:30:22 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/socket.c
r14085 r14159 60 60 so->so_state = SS_NOFDREF; 61 61 so->s = -1; 62 #if defined(VBOX_WITH_SIMPLEFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS)63 so->hNetworkEvent = WSACreateEvent(); /*XXX: NOT correct place*/64 AssertRelease(so->hNetworkEvent != WSA_INVALID_EVENT);65 #endif66 62 } 67 63 return(so); … … 740 736 } 741 737 738 #if defined(VBOX_WITH_SIMPLEFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS) 739 void soregister_event(struct NATState *pData, struct socket *so) 740 { 741 static int soidx; 742 static int eidx = 1; 743 744 if (soidx >= WSA_MAXIMUM_WAIT_EVENTS * eidx) { 745 eidx++; 746 } 747 so->hNetworkEvent = pData->phEvents[eidx]; 748 soidx++; 749 } 750 #endif
Note:
See TracChangeset
for help on using the changeset viewer.