VirtualBox

Changeset 43213 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Sep 6, 2012 8:37:56 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80603
Message:

RTSocketGetAddrInfo -> RTSocketQueryAddressStr

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r43171 r43213  
    11971197# define RTSocketClose                                  RT_MANGLER(RTSocketClose)
    11981198# define RTSocketFromNative                             RT_MANGLER(RTSocketFromNative)
    1199 # define RTSocketGetAddrInfo                            RT_MANGLER(RTSocketGetAddrInfo)
     1199# define RTSocketQueryAddressStr                        RT_MANGLER(RTSocketQueryAddressStr)
    12001200# define RTSocketGetLocalAddress                        RT_MANGLER(RTSocketGetLocalAddress)
    12011201# define RTSocketGetPeerAddress                         RT_MANGLER(RTSocketGetPeerAddress)
  • trunk/include/iprt/socket.h

    r43206 r43213  
    130130 * Try resolve a host name, returning the first matching address.
    131131 *
    132  * @remarks Gets the ip addresses of a hostname via getaddrinfo(). It returns
    133  *          only the first result for the moment, but this will change with the
    134  *          upcoming IPv6 struct.
    135  *
    136132 * @returns IPRT status code.
    137133 * @param   pszHost         Name or IP address to look up.
    138  * @param   pszResult       Where to return the result.
    139  * @param   pcbResult       Input: The size of the @a pszResult buffer.
     134 * @param   pszAddress      Where to return the stringified address.
     135 * @param   pcbAddress      Input: The size of the @a pszResult buffer.
    140136 *                          Output: size of the returned string.  This is set on
    141137 *                          VERR_BUFFER_OVERFLOW and most other error statuses.
     
    148144 *                          Not modified on failure.
    149145 */
    150 RTDECL(int) RTSocketGetAddrInfo(const char *pszHost, char *pszResult, size_t *pcbResult, PRTNETADDRTYPE penmAddrType);
     146RTDECL(int) RTSocketQueryAddressStr(const char *pszHost, char *pszAddress, size_t *pcbAddress, PRTNETADDRTYPE penmAddrType);
    151147
    152148/**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette