VirtualBox

Changeset 14160 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Nov 13, 2008 8:37:00 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39252
Message:

removing reducular event assigning and conunter ticking
with model introduced in 39250 the counter return WSA_MAXIMUM_WAITING_EVENTS

File:
1 edited

Legend:

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

    r14159 r14160  
    419419                                rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_ACCEPT|FD_CONNECT|FD_OOB);
    420420                                AssertRelease(rc != SOCKET_ERROR);
    421                                 pData->phEvents[cEvents] = so->hNetworkEvent;
    422                                 cEvents++;
    423421#endif
    424422                                continue;
     
    435433                                rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_ACCEPT|FD_CONNECT|FD_OOB);
    436434                                AssertRelease(rc != SOCKET_ERROR);
    437                                 pData->phEvents[cEvents] = so->hNetworkEvent;
    438                                 cEvents++;
    439435#endif
    440436                                continue;
     
    452448                                rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_ACCEPT|FD_CONNECT|FD_OOB);
    453449                                AssertRelease(rc != SOCKET_ERROR);
    454                                 pData->phEvents[cEvents] = so->hNetworkEvent;
    455                                 cEvents++;
    456450                                continue; /*XXX: we're using the widest mask for event*/
    457451#endif
     
    470464                                rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_OOB|FD_READ|FD_WRITE|FD_ACCEPT|FD_CONNECT);
    471465                                AssertRelease(rc != SOCKET_ERROR);
    472                                 pData->phEvents[cEvents] = so->hNetworkEvent;
    473                                 cEvents++;
    474466                                continue; /*XXX: we're using the widest mask for event*/
    475467#endif
     
    512504                                rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_OOB|FD_ACCEPT);
    513505                                AssertRelease(rc != SOCKET_ERROR);
    514                                 pData->phEvents[cEvents] = so->hNetworkEvent;
    515                                 cEvents++;
    516506#endif
    517507                        }
     
    555545        *pnfds = nfds;
    556546#else
    557         *pnfds = cEvents;
     547        *pnfds = WSA_MAXIMUM_WAIT_EVENTS;
    558548#endif
    559549}
Note: See TracChangeset for help on using the changeset viewer.

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