• 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: Chris Ridd <email@hidden>
  • Date: Tue, 02 Mar 2004 20:57:35 +0000

On 2/3/04 8:11 pm, Matt Jaffa <email@hidden> 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

Try inet_aton and inet_ntoa, they both share a man page.

Cheers,

Chris
_______________________________________________
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: Resource fork question
  • Next by Date: Re: Resource fork question
  • Previous by thread: Re: API to convert IP ADDress
  • Next by thread: API for examining Quicktime Movies
  • Index(es):
    • Date
    • Thread