Re: API to convert IP ADDress
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.