VirtualBox

Changeset 27497 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Mar 18, 2010 6:59:08 PM (15 years ago)
Author:
vboxsync
Message:

iprt,rdp,drvnamedpipe: Changed the RTSOCKET type from int to a struct pointer; need this for implementing polling of sockets on windows. Also split out the generic socket stuff from RTTcp.

Location:
trunk/include/iprt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/err.h

    r27431 r27497  
    611611/** Status code, typically given as a parameter, that isn't supposed to be used. */
    612612#define VERR_IGNORED                        (-91)
     613/** Concurrent access to the object is not allowed. */
     614#define VERR_CONCURRENT_ACCESS              (-92)
    613615/** @} */
    614616
  • trunk/include/iprt/tcp.h

    r26915 r27497  
    195195
    196196/**
    197  * Send data from a socket.
     197 * Send data to a socket.
    198198 *
    199199 * @returns iprt status code.
  • trunk/include/iprt/types.h

    r26734 r27497  
    12491249
    12501250/** Socket handle. */
    1251 typedef int RTSOCKET;
     1251typedef R3R0PTRTYPE(struct RTSOCKETINT *)          RTSOCKET;
    12521252/** Pointer to socket handle. */
    1253 typedef RTSOCKET *PRTSOCKET;
     1253typedef RTSOCKET                                   *PRTSOCKET;
    12541254/** Nil socket handle. */
    1255 #define NIL_RTSOCKET                                (~(RTSOCKET)0)
     1255#define NIL_RTSOCKET                                ((RTSOCKET)0)
    12561256
    12571257/** Thread handle.*/
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