Home

Traffic Server Software Developers Kit

INKHostLookupResultIPGet

Gets the IP address of a hostname Traffic Server has looked up.

Prototype

InkReturnCode INKHostLookupResultIPGet (INKHostLookupResult lookup_result, unsigned int *ip)

Arguments

INKHostLookupResult lookup_result is the information returned by INKHostLookupResult.

unsigned int *ip is set to the value of the IP address, in network byte order.

Description

Converts the information retrieved by INKHostLookupResult to an unsigned int representing the IP address.

Returns

INK_SUCCESS if the API is called successfully.

INK_ERROR if an error occurs while calling the API or if an argument is invalid.