NSHost issue
NSHost issue
- Subject: NSHost issue
- From: Wilfried de Kerchove de Denterghem <email@hidden>
- Date: Wed, 27 Aug 2003 14:48:58 +0200
Hello,
I have an issue when performing a DNS lookup using NSHost for
localhost. The following code:
NSHost* host = [NSHost hostWithName:@"localhost"];
if (host) {
NSLog(@"IPs = %@", [[host addresses] description]);
} else {
NSLog(@"Failed");
}
returns: IPs = ("::1", "127.0.0.1")
"::1" doesn't look like a valid IP address to me. Has anyone an
explanation or should I file a bug?
Thank you,
Wilfried de Kerchove de Denterghem
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.