Changeset 43203 in vbox for trunk/include/iprt
- Timestamp:
- Sep 5, 2012 1:21:19 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80591
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/socket.h
r43171 r43203 128 128 129 129 /** 130 * Gets the ip addresses of a hostname via getaddrinfo() 131 * Returns only the first result for the moment 132 * This will change with the upcoming IPv6 struct. 133 * 134 * @returns IPRT status code. 135 * @param psz szString we want to lookup 136 * @param pszResult - memory used to write the result to 137 * @param resultSize - size of pszResult in bytes. 138 * Holds size of string of the returned 139 * address on out 140 * @param pAddrType Which address to lookup, valid values are: 141 * RTNETADDRTYPE_IPV4 -> lookup AF_INET 142 * RTNETADDRTYPE_IPV6 -> lookup AF_INET6 143 * RTNETADDRTYPE_INVALID,NULL,... -> lookup anything 144 */ 145 RTDECL(int) RTSocketGetAddrInfo(const char *psz, char *pszResult, size_t *resultSize, PRTNETADDRTYPE pAddrType); 130 * Try resolve a host name, returning the first matching address. 131 * 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 * 136 * @returns IPRT status code. 137 * @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. 140 * Output: size of the returned string. 141 * @param penmAddrType Input: Which kind of address to return. Valid values 142 * are: 143 * - RTNETADDRTYPE_IPV4 -> lookup AF_INET 144 * - RTNETADDRTYPE_IPV6 -> lookup AF_INET6 145 * - NULL -> lookup anything 146 * Output: Yet to be defined or why is this a pointer? 147 */ 148 RTDECL(int) RTSocketGetAddrInfo(const char *pszHost, char *pszResult, size_t *pcbResult, PRTNETADDRTYPE penmAddrType); 146 149 147 150 /**
Note:
See TracChangeset
for help on using the changeset viewer.