Discovering the default gateway address
Discovering the default gateway address
- Subject: Discovering the default gateway address
- From: "R. Tyler Ballance" <email@hidden>
- Date: Sat, 3 Feb 2007 20:47:03 -0600
Howdy, I'm trying to have my C/ObjC application discover the default
gateway address so I can perform some diagnostics (including checking
if the router supports UPnP and NAT-PMP, etc) and I have a bit of C
code (that doesn't work) so I'm curious as to whether there is a
higher level Cocoa abstraction that will return this information to me?
NSWorkspace and NSHost don't seem to offer a means of obtaining the
information, and my C code returns a lot of entries (xxx.xxx.128.1)
but none that are my default gateway. Are there any higher level
abstractions through Cocoa that will return this information to me?
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