VirtualBox

Changeset 14183 in vbox


Ignore:
Timestamp:
Nov 13, 2008 4:29:51 PM (16 years ago)
Author:
vboxsync
Message:

Send event shouldn't be autoresetting and instead should be used event passed to slirp from NAT driver

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r14181 r14183  
    226226    }
    227227#ifdef VBOX_WITH_SIMPLEFIED_SLIRP_SYNC
    228         pData->phEvents[0] = CreateEvent(NULL, FALSE, FALSE, NULL);
    229228        pData->phEvents[VBOX_SOCKET_EVENT_INDEX] = CreateEvent(NULL, FALSE, FALSE, NULL);
    230229#endif
     
    924923void slirp_register_external_event(PNATState pData, HANDLE hEvent)
    925924{
    926         pData->phEvents[0] = hEvent;
    927 }
    928 #endif
     925        pData->phEvents[VBOX_SEND_EVENT_INDEX] = hEvent;
     926}
     927#endif
  • trunk/src/VBox/Devices/Network/slirp/slirp_state.h

    r14182 r14183  
    117117    struct socket *udp_last_so;
    118118#if defined(VBOX_WITH_SIMPLEFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS)
     119#define VBOX_SEND_EVENT_INDEX 1
    119120#define VBOX_SOCKET_EVENT_INDEX 1
    120121#define VBOX_SOCKET_EVENT (pData->phEvents[VBOX_SOCKET_EVENT_INDEX])
Note: See TracChangeset for help on using the changeset viewer.

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