• 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
Re: API to convert IP ADDress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: API to convert IP ADDress


  • Subject: Re: API to convert IP ADDress
  • From: Gwynne <email@hidden>
  • Date: Tue, 2 Mar 2004 15:39:12 -0500

On Mar 2, 2004, at 3:11 PM, Matt Jaffa wrote:
Hi,

Does anyone know if there is any API in cocoa/Obj-C
or even CoreFoundation to

convert IP Address 192.34.12.0 (for example) to the int representation of it 3495828 (something like that)
And also to convert the int representation of the server address back to 192.34.12.0

inet_pton() and inet_ntop(). These are BSD routines; check the manpages for documentation on them.

-- Gwynne, key to the Code that runs us all
Formerly known as Sailor Quasar.
Email: email@hidden
Web: http://musicimage.plasticchicken.com/
_______________________________________________
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.


References: 
 >API to convert IP ADDress (From: Matt Jaffa <email@hidden>)

  • Prev by Date: Re: API to convert IP ADDress
  • Next by Date: Re: Open Source licenses question
  • Previous by thread: Re: API to convert IP ADDress
  • Next by thread: Re: API to convert IP ADDress
  • Index(es):
    • Date
    • Thread