VirtualBox

Changeset 28535 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Apr 20, 2010 8:39:10 PM (15 years ago)
Author:
vboxsync
Message:

iprt: add RTSocketFromNative API

File:
1 edited

Legend:

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

    r27791 r28535  
    263263    *ppSocket = pThis;
    264264    return VINF_SUCCESS;
     265}
     266
     267
     268RTDECL(int) RTSocketFromNative(PRTSOCKET phSocket, RTHCINTPTR uNative)
     269{
     270    AssertReturn(uNative != NIL_RTSOCKETNATIVE, VERR_INVALID_PARAMETER);
     271#ifndef RT_OS_WINDOWS
     272    AssertReturn(uNative >= 0, VERR_INVALID_PARAMETER);
     273#endif
     274    AssertPtrReturn(phSocket, VERR_INVALID_POINTER);
     275    return rtSocketCreateForNative(phSocket, uNative);
    265276}
    266277
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