VirtualBox

Changeset 70484 in vbox for trunk


Ignore:
Timestamp:
Jan 8, 2018 10:12:19 AM (7 years ago)
Author:
vboxsync
Message:

iprt/socket.cpp: two fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/socket.cpp

    r70483 r70484  
    688688    /*
    689689     * Got socket pair, so use it.
     690     * Note! This isn't TCP per se, but it should fool the users.
    690691     */
    691692    int aSockets[2] = { -1, -1 };
    692     if (socketpair(AF_INET, SOCK_STREAM, IPPROTO_TCP, aSockets) == 0)
     693    if (socketpair(AF_LOCAL, SOCK_STREAM, 0, aSockets) == 0)
    693694    {
    694695        *phServer = aSockets[0];
     
    28772878                /* If no bytes are available, assume error condition. */
    28782879                u_long cbAvail = 0;
    2879                 rc = ioctlsocket(pThis->hNative, FIONREAD, &cbAvail);
     2880                rc = g_pfnioctlsocket(pThis->hNative, FIONREAD, &cbAvail);
    28802881                if (rc == 0 && cbAvail == 0)
    28812882                    fRetEvents |= RTPOLL_EVT_ERROR;
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