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