Re: How do I get the identifier of the currently connected network interface?
Re: How do I get the identifier of the currently connected network interface?
- Subject: Re: How do I get the identifier of the currently connected network interface?
- From: Andreas Grosam <email@hidden>
- Date: Sun, 11 Nov 2012 11:04:36 +0100
On 08.11.2012, at 05:20, MaurĂcio Linhares wrote:
> Any hints?
>
> I just need something like "en0", "vl0", just the identifier of the
> currently connected network. Is there a function that is going to give
> me this information?
>
Not sure what you mean with "currently connected network". But you may use the tools netstat or ifconfig in a shell in order to get the list of interfaces:
$ netstat -i
or
$ ifconfig -a
The man page has more info.
_______________________________________________
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