• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSHost issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSHost issue
      • From: Wade Tregaskis <email@hidden>
    • Re: NSHost issue
      • From: Christian Brunschen <email@hidden>
    • Re: NSHost issue
      • From: "Alastair J.Houghton" <email@hidden>
  • Prev by Date: RE: We are looking for developers for small productivity applications
  • Next by Date: Re: NSHost issue
  • Previous by thread: RE: We are looking for developers for small productivity applications
  • Next by thread: Re: NSHost issue
  • Index(es):
    • Date
    • Thread