next up previous contents
Next: A. Complete Header Listing Up: 4. Device Reference Previous: 4.12 truth   Contents

Subsections


4.13 wifi

Synopsis

The wifi proxy is used to query the state of a wireless network. It returns information such as the link quality and signal strength of access points or of other wireless NIC's on an ad-hoc network.

Data



struct playerc_wifi_link_t : Individual link info.

char ip[32];
Destination IP address.

int qual, level, noise;
Link properties.



struct player_wifi_t : Wifi device proxy.

playerc_device_t info;
Device info; must be at the start of all device structures.

int link_count;
playerc_wifi_link_t links[PLAYERC_WIFI_MAX_LINKS];
A list containing info for each link.

Methods

playerc_wifi_t *playerc_wifi_create(playerc_client_t *client, int index);

Create a wifi proxy.

void playerc_wifi_destroy(playerc_wifi_t *device);

Destroy a wifi proxy.

int playerc_wifi_subscribe(playerc_wifi_t *device, int access);

Subscribe to the wifi device.

int playerc_wifi_unsubscribe(playerc_wifi_t *device);

Un-subscribe from the wifi device.


next up previous contents
Next: A. Complete Header Listing Up: 4. Device Reference Previous: 4.12 truth   Contents
2004-05-31