InetResolveHostname
int InetResolveHostname (const char *hostname, char ***addresses, int *numberOfAddresses);
Purpose
Resolves a hostname into one or more registered IP addresses.
Parameters
Input | ||
Name | Type | Description |
hostname | const char * | The hostname to resolve. |
Output | ||
Name | Type | Description |
addresses | char ** | An array of IP address strings returned by the hostname lookup. Pass the address of an unallocated char ** variable. The library allocates memory for the returned array and the IP address strings. You must free this memory by calling InetFreeMemory on each IP address string, as well as the containing array. |
numberOfAddresses | int | Number of addresses returned by the lookup. |
Return Value
Name | Type | Description |
result | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. |
Additional Information
Library: Internet Library
Include file: cvintwrk.h
LabWindows/CVI compatibility: LabWindows/CVI 8.5 and later