VirtualBox

Changeset 53536 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Dec 14, 2014 9:30:26 PM (10 years ago)
Author:
vboxsync
Message:

Runtime/socket: Add timeout argument to RTTcpClientConnectEx to specify the amount of time waiting

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r43213 r53536  
    4444 * @{
    4545 */
     46
     47/** Use the system default timeout for the connet attempt. */
     48#define RT_SOCKETCONNECT_DEFAULT_WAIT (RT_INDEFINITE_WAIT - 1)
    4649
    4750/**
  • trunk/include/iprt/tcp.h

    r45948 r53536  
    181181 * @param   uPort           The port to connect to.
    182182 * @param   pSock           Where to store the handle to the established connection.
     183 * @param   cMillies        Number of milliseconds to wait for the connect attempt to complete.
     184 *                          Use RT_INDEFINITE_WAIT to wait for ever.
     185 *                          Use RT_SOCKETCONNECT_DEFAULT_WAIT to wait for the default time
     186 *                          configured on the running system.
    183187 * @param   ppCancelCookie  Where to store information for canceling the
    184188 *                          operation (from a different thread). Optional.
     
    194198 */
    195199RTR3DECL(int) RTTcpClientConnectEx(const char *pszAddress, uint32_t uPort, PRTSOCKET pSock,
    196                                    PRTTCPCLIENTCONNECTCANCEL volatile *ppCancelCookie);
     200                                   RTMSINTERVAL cMillies, PRTTCPCLIENTCONNECTCANCEL volatile *ppCancelCookie);
    197201
    198202/**
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