• 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
IP Address - revisited
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IP Address - revisited


  • Subject: IP Address - revisited
  • From: "David Cornell" <email@hidden>
  • Date: Wed, 21 Jul 2004 21:02:49 -0700

Given the following how would i print out only IPV4 addresses while excluding
IPV6 addresses and 127.0.0.1?

NSEnumerator *contents = [[currenthost addresses] objectEnumerator];
NSString *address;
while ((address = [contents nextObject]))
{
//...
}
_______________________________________________
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: IP Address - revisited
      • From: Larry Fransson <email@hidden>
  • Prev by Date: Re: NSTask Permission denied
  • Next by Date: -alloc -init of an Object Instance Variable?
  • Previous by thread: Re: NSTask Permission denied
  • Next by thread: Re: IP Address - revisited
  • Index(es):
    • Date
    • Thread