Re: Discovering the default gateway address
Re: Discovering the default gateway address
- Subject: Re: Discovering the default gateway address
- From: "R. Tyler Ballance" <email@hidden>
- Date: Sun, 4 Feb 2007 05:04:31 -0600
On Feb 4, 2007, at 4:55 AM, Finlay Dobbie wrote:
On 04/02/07, R. Tyler Ballance <email@hidden> wrote:
So the best chance I suppose is to rely on reading the keys from the
proper entry in the System Configuration framework? (it seems the
right key is: State:/Network/Global/IPv4)
This is acceptable I suppose, but I was hoping for a more
programmatic means of doing this
The System Configuration framework is a programmatic API...
I meant to word that with the connotation of a programmatic API for
reading say, the actual routing tables that the underlying kernel
uses to route, similar to the sysctl(3) options available, since I'm
not 100% clear on how tied together the System Configuration
framework is to the unix underpinnings of sysct(3). I was kind of
hoping for a [[NSHost currentHost] defaultRoute]; or something to be
honest ;)
Cheers
R. Tyler Ballance: Lead Mac Developer at bleep. software
contact: email@hidden | jabber: email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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