VirtualBox

Ignore:
Timestamp:
Nov 11, 2008 12:14:24 PM (16 years ago)
Author:
vboxsync
Message:

maximum available mask for event catching was added (probably need to be revised)

File:
1 edited

Legend:

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

    r14085 r14088  
    399399                           continue;
    400400
     401#if !defined(VBOX_WITH_SIMPLEFIED_SLIRP_SYNC) || !defined(RT_OS_WINDOWS)
     402                        WSAResetEvent(so->hNetworkEvent);
     403#endif
    401404                        /*
    402405                         * Set for reading sockets which are accepting
     
    407410                                UPD_NFDS(so->s);
    408411#else
    409                                 rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ);
     412                                rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_ACCEPT|FD_CONNECT|FD_OOB);
    410413                                AssertRelease(rc != SOCKET_ERROR);
    411414                                pData->phEvents[cEvents] = so->hNetworkEvent;
     
    423426                                UPD_NFDS(so->s);
    424427#else
    425                                 rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ);
     428                                rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_ACCEPT|FD_CONNECT|FD_OOB);
    426429                                AssertRelease(rc != SOCKET_ERROR);
    427430                                pData->phEvents[cEvents] = so->hNetworkEvent;
     
    440443                                UPD_NFDS(so->s);
    441444#else
    442                                 rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_WRITE);
     445                                rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_ACCEPT|FD_CONNECT|FD_OOB);
    443446                                AssertRelease(rc != SOCKET_ERROR);
    444447                                pData->phEvents[cEvents] = so->hNetworkEvent;
     
    457460                                UPD_NFDS(so->s);
    458461#else
    459                                 rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_OOB|FD_READ);
     462                                rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_OOB|FD_READ|FD_WRITE|FD_ACCEPT|FD_CONNECT);
    460463                                AssertRelease(rc != SOCKET_ERROR);
    461464                                pData->phEvents[cEvents] = so->hNetworkEvent;
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