Re: Routing Information
Re: Routing Information
- Subject: Re: Routing Information
- From: Chris Suter <email@hidden>
- Date: Tue, 13 Jun 2006 10:58:36 +1000
On 13/06/2006, at 10:13 AM, Pablo Bendersky wrote:
Hi,
Is there any way of getting the default gateway's IP address?
So far, my solution would be to use an NSTask and parse the result of
running netstat.
Is there any other alternative?
Thanks in advance.
This isn't really Cocoa.
Have a look at the route(4) man page. (Haven't tried this myself but
it looks promising.)
I'd have thought you could also find the source for netstat somewhere.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden