VirtualBox

Changeset 27509 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Mar 18, 2010 11:47:16 PM (15 years ago)
Author:
vboxsync
Message:

iprt: Poll on sockets on windows (untested). RTPollSetCount -> RTPollSetGetCount.

Location:
trunk/src/VBox/Runtime/include/internal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/pipe.h

    r27432 r27509  
    3333
    3434#include <iprt/pipe.h>
     35/* Requires Windows.h on windows. */
    3536
    3637RT_C_DECLS_BEGIN
    3738
    3839#ifdef RT_OS_WINDOWS
    39 int         rtPipePollGetHandles(RTPIPE hPipe, uint32_t fEvents, PHANDLE ph1, PHANDLE ph2);
    40 uint32_t    rtPipePollStart(RTPIPE hPipe, RTPOLLSET hPollSet, uint32_t fEvents, bool fNoWait);
    41 uint32_t    rtPipePollDone(RTPIPE hPipe, uint32_t fEvents);
     40int         rtPipePollGetHandle(RTPIPE hPipe, uint32_t fEvents, PHANDLE ph);
     41uint32_t    rtPipePollStart(RTPIPE hPipe, RTPOLLSET hPollSet, uint32_t fEvents, bool fFinalEntry, bool fNoWait);
     42uint32_t    rtPipePollDone(RTPIPE hPipe, uint32_t fEvents, bool fFinalEntry);
    4243#endif /* RT_OS_WINDOWS */
    4344
  • trunk/src/VBox/Runtime/include/internal/socket.h

    r27503 r27509  
    3434#include <iprt/cdefs.h>
    3535#include <iprt/types.h>
     36/* Currently requires a bunch of socket headers. */
    3637
    3738
    3839RT_C_DECLS_BEGIN
    3940
     41#ifndef IPRT_INTERNAL_SOCKET_POLLING_ONLY
    4042int rtSocketResolverError(void);
    4143int rtSocketCreateForNative(RTSOCKETINT **ppSocket,
    42 #ifdef RT_OS_WINDOWS
     44# ifdef RT_OS_WINDOWS
    4345                            SOCKET hNative
    44 #else
     46# else
    4547                            int hNative
    46 #endif
     48# endif
    4749                            );
    4850int rtSocketCreate(PRTSOCKET phSocket, int iDomain, int iType, int iProtocol);
     
    5254int rtSocketConnect(RTSOCKET hSocket, const struct sockaddr *pAddr, int cbAddr);
    5355int rtSocketSetOpt(RTSOCKET hSocket, int iLevel, int iOption, void const *pvValue, int cbValue);
     56#endif /* IPRT_INTERNAL_SOCKET_POLLING_ONLY */
     57
     58#ifdef RT_OS_WINDOWS
     59int         rtSocketPollGetHandle(RTSOCKET hSocket, uint32_t fEvents, PHANDLE ph);
     60uint32_t    rtSocketPollStart(RTSOCKET hSocket, RTPOLLSET hPollSet, uint32_t fEvents, bool fFinalEntry, bool fNoWait);
     61uint32_t    rtSocketPollDone(RTSOCKET hSocket, uint32_t fEvents, bool fFinalEntry);
     62#endif /* RT_OS_WINDOWS */
    5463
    5564RT_C_DECLS_END
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