Changeset 27787 in vbox for trunk/include
- Timestamp:
- Mar 29, 2010 12:39:25 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59441
- Location:
- trunk/include/iprt
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/err.h
r27576 r27787 613 613 /** Concurrent access to the object is not allowed. */ 614 614 #define VERR_CONCURRENT_ACCESS (-92) 615 /** The caller does not have a reference to the object. 616 * This status is used when two threads is caught sharing the same object 617 * reference. */ 618 #define VERR_CALLER_NO_REFERENCE (-93) 615 619 /** Invalid login data given. */ 616 #define VERR_LOGON_FAILURE (-9 3)620 #define VERR_LOGON_FAILURE (-94) 617 621 /** @} */ 618 622 -
trunk/include/iprt/mempool.h
r20374 r27787 124 124 * Frees memory allocated from a pool. 125 125 * 126 * @param hMemPool Handle to the pool containing the memory. Passing126 * @param hMemPool Handle to the pool containing the memory. Passing 127 127 * NIL here is fine, but it may come at a slight 128 128 * performance cost. … … 146 146 * Releases a reference to a memory block in a pool. 147 147 * 148 * @param hMemPool Handle to the pool containing the memory. Passing 148 * @returns New reference count, UINT32_MAX on error (asserted). 149 * 150 * @param hMemPool Handle to the pool containing the memory. Passing 149 151 * NIL here is fine, but it may come at a slight 150 152 * performance cost. … … 153 155 RTDECL(uint32_t) RTMemPoolRelease(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW; 154 156 157 /** 158 * Get the current reference count. 159 * 160 * @returns The reference count, UINT32_MAX on error (asserted). 161 * @param pv Pointer to memory block. 162 */ 163 RTDECL(uint32_t) RTMemPoolRefCount(void *pv) RT_NO_THROW; 164 155 165 156 166 RT_C_DECLS_END -
trunk/include/iprt/socket.h
r27503 r27787 49 49 50 50 /** 51 * Destroys the specified handle, freeing associated resources and closing the 52 * socket. 51 * Retains a reference to the socket handle. 52 * 53 * @returns New reference count, UINT32_MAX on invalid handle (asserted). 54 * 55 * @param hSocket The socket handle. 56 */ 57 RTDECL(uint32_t) RTSocketRetain(RTSOCKET hSocket); 58 59 /** 60 * Release a reference to the socket handle. 61 * 62 * When the reference count reaches zero, the socket handle is shut down and 63 * destroyed. This will not be graceful shutdown, use the protocol specific 64 * close method if this is desired. 65 * 66 * @returns New reference count, UINT32_MAX on invalid handle (asserted). 67 * 68 * @param hSocket The socket handle. The NIL handle is quietly 69 * ignored and 0 is returned. 70 */ 71 RTDECL(uint32_t) RTSocketRelease(RTSOCKET hSocket); 72 73 /** 74 * Shuts down the socket, close it and then release one handle reference. 75 * 76 * This is slightly different from RTSocketRelease which will first do the 77 * shutting down and closing when the reference count reaches zero. 53 78 * 54 79 * @returns IPRT status code. … … 59 84 * desired. 60 85 */ 61 RTDECL(int) RTSocket Destroy(RTSOCKET hSocket);86 RTDECL(int) RTSocketClose(RTSOCKET hSocket); 62 87 63 88 /** -
trunk/include/iprt/tcp.h
r27497 r27787 136 136 * 137 137 * @param pServer The server handle as returned from RTTcpServerCreateEx(). 138 * @param pSockClient Where to return the socket handle to the client 139 * connection (on success only). Use 140 * RTTcpServerDisconnectClient() to clean it, this must 141 * be done before the next call to RTTcpServerListen2. 142 * 143 * @todo This can easily be extended to support multiple connections by 144 * adding a new state and a RTTcpServerDisconnectClient variant for 145 * closing client sockets. 146 */ 147 RTR3DECL(int) RTTcpServerListen2(PRTTCPSERVER pServer, PRTSOCKET pSockClient); 138 * @param phClientSocket Where to return the socket handle to the client 139 * connection (on success only). This must be closed 140 * by calling RTTcpServerDisconnectClient2(). 141 */ 142 RTR3DECL(int) RTTcpServerListen2(PRTTCPSERVER pServer, PRTSOCKET phClientSocket); 148 143 149 144 /** … … 154 149 */ 155 150 RTR3DECL(int) RTTcpServerDisconnectClient(PRTTCPSERVER pServer); 151 152 /** 153 * Terminates an open client connect when using RTTcpListen2 154 * 155 * @returns IPRT status code. 156 * @param hClientSocket The client socket handle. This will be invalid upon 157 * return, whether successful or not. NIL is quietly 158 * ignored (VINF_SUCCESS). 159 */ 160 RTR3DECL(int) RTTcpServerDisconnectClient2(RTSOCKET hClientSocket); 156 161 157 162 /**
Note:
See TracChangeset
for help on using the changeset viewer.