A wrapper around the entire Wi-Fi subsystem that you use to access interfaces and set up event notifications.


@interface CWWiFiClient : NSObject


Wi-Fi client objects are heavy. Therefore, it's more efficient to use a single, long-running client instance, rather than creating several short-lived instances. For convenience, you can use the singleton instance returned by the sharedWiFiClient class method.

Instead of instantiating CWInterface objects directly, use the ones provided by the instance methods of this class. For example, the interface method returns the default Wi-Fi interface.


Getting the Shared Instance

+ sharedWiFiClient

The shared Wi-Fi client object.

Initializing a Wi-Fi Client

- init

Initializes a Wi-Fi client object.

Setting a Delegate


An object that provides Wi-Fi event handling.

Getting Interfaces

- interface

Returns the default Wi-Fi interface.

- interfaceWithName:

Returns the Wi-Fi interface with the given name.

- interfaces

Returns all available Wi-Fi interfaces.

+ interfaceNames

Returns the list of the names of available Wi-Fi interfaces.

Monitoring Events

- startMonitoringEventWithType:error:

Register for specific Wi-Fi event notifications.

- stopMonitoringAllEventsAndReturnError:

Unregister for all Wi-Fi event notifications.

- stopMonitoringEventWithType:error:

Unregister for specific Wi-Fi event notifications.


Inherits From