Since I upgraded to iOS 8, when attempting to retrieve the local host IP address via the gethostbyname(string) or getaddrinfo() function, it take in excess of 30 seconds for this function to return. Prior to this, the function returned in milliseconds. I'm using the latest Cisco AnyConnect that's available for iOS 8. Is this a known issue?
Here's a sample of the program that exhibits this delay.
gethostname((char *)hostname, 100);
NSString *hostnameString = [NSString stringWithUTF8String:hostname];
void *ret = (void *)gethostbyname(hostname);