VirtualBox

Ignore:
Timestamp:
Mar 18, 2010 8:52:02 PM (15 years ago)
Author:
vboxsync
Message:

iprt/socket.h: RTSocket API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/poll-posix.cpp

    r27501 r27503  
    4141#include <iprt/mem.h>
    4242#include <iprt/pipe.h>
     43#include <iprt/socket.h>
    4344#include <iprt/string.h>
    4445#include <iprt/thread.h>
     
    300301        case RTHANDLETYPE_PIPE:
    301302            if (pHandle->u.hPipe != NIL_RTPIPE)
    302                 fd = RTPipeToNative(pHandle->u.hPipe);
    303             break;
    304 
    305         //case RTHANDLETYPE_SOCKET:
    306         //    if (pHandle->u.hSocket != NIL_RTSOCKET)
    307        //         fd = (int)pHandle->u.hSocket; //fd = RTTcpToNative(pHandle->u.hSocket);
    308        //     break;
     303                fd = (int)RTPipeToNative(pHandle->u.hPipe);
     304            break;
     305
     306        case RTHANDLETYPE_SOCKET:
     307            if (pHandle->u.hSocket != NIL_RTSOCKET)
     308                fd = (int)RTSocketToNative(pHandle->u.hSocket);
     309            break;
    309310
    310311        case RTHANDLETYPE_FILE:
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