VirtualBox

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


Ignore:
Timestamp:
Mar 19, 2010 6:26:29 PM (15 years ago)
Author:
vboxsync
Message:

iprt/socket.cpp: relaxed the locking for accept and shutdown.

File:
1 edited

Legend:

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

    r27509 r27549  
    3737
    3838
     39/** Native socket handle type. */
     40#ifdef RT_OS_WINDOWS
     41# define RTSOCKETNATIVE         SOCKET
     42#else
     43# define RTSOCKETNATIVE         int
     44#endif
     45
     46/** NIL value for native socket handles. */
     47#ifdef RT_OS_WINDOWS
     48# define NIL_RTSOCKETNATIVE     INVALID_SOCKET
     49#else
     50# define NIL_RTSOCKETNATIVE     (-1)
     51#endif
     52
     53
    3954RT_C_DECLS_BEGIN
    4055
    4156#ifndef IPRT_INTERNAL_SOCKET_POLLING_ONLY
    4257int rtSocketResolverError(void);
    43 int rtSocketCreateForNative(RTSOCKETINT **ppSocket,
    44 # ifdef RT_OS_WINDOWS
    45                             SOCKET hNative
    46 # else
    47                             int hNative
    48 # endif
    49                             );
     58int rtSocketCreateForNative(RTSOCKETINT **ppSocket, RTSOCKETNATIVE hNative);
    5059int rtSocketCreate(PRTSOCKET phSocket, int iDomain, int iType, int iProtocol);
    5160int rtSocketBind(RTSOCKET hSocket, const struct sockaddr *pAddr, int cbAddr);
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