Re: Read airport connection status
Re: Read airport connection status
- Subject: Re: Read airport connection status
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Tue, 19 Oct 2010 12:04:20 +0100
On 14 Oct 2010, at 06:37, email@hidden wrote:
> I would like know if there is any equivalent API in system configuration framework to retrieve the output similar to /usr/sbin/networksetup -getinfo "Airport". i.e I would like to know if the Wifi network is connected successfully, if not wait until network is actually connected. networksetup tool returns IP address only when the airport is connected successfully. In SC framework SCNetworkInterfaceGetConfiguration API returns only one key. There seems no API that returns current configuration of the service name. (AirPort). There is API to establish the connection using serviceSCNetworkServiceEstablishDefaultConfiguration, but no API to retrieve the configuration information of the service?
You should look at the CoreWLAN framework. This gives you access to a world of AirPort specific stuff that's not tracked by the System Configuration framework.
<http://developer.apple.com/library/mac/#samplecode/CoreWLANWirelessManager>
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden