Re: How to get tcpip setting for a certain interface
Re: How to get tcpip setting for a certain interface
- Subject: Re: How to get tcpip setting for a certain interface
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 18 Jan 2008 09:55:03 +0100
Le 18 janv. 08 à 08:39, Stephen a écrit :
Hi all
I try to get IP address,subnet mask,and gateway ip of a certain
interface
Is there any API of function call could easily realize this feature
Or should I do the hard way to dump ifconfig / route information
and parsing for it??
I don't know if there is an easy way to do it, but for me, the hard
way will be to use getifaddrs(), not to parse some tools output.
The other way will probably to use the SystemConfiguration Framework
(maybe MoreSCF contains some interesting clue: http://developer.apple.com/samplecode/MoreSCF)
.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden