Retrieve the file descriptor for Wi-Fi service events.
#include <wifi/wifi_service.h>
WIFI_API wifi_result_t wifi_service_get_fd(wifi_service_t *wifi_service, int *fd)
BlackBerry 10.2.0
The Wi-Fi service handle.
The Wi-Fi service file descriptor.
This function retrieves the file descriptor that the application uses to receive event information from the Wi-Fi service.
The ownership of the file descriptor is not passed to the application. The application must not close the file descriptors manually, but should call wifi_service_shutdown() to close the file descriptor.
The application can use the file descriptor with ionotify(), select(), poll(), or bps_add_fd() to receive event notification triggers, and then call wifi_service_read_event() to retrieve the event and wifi_service_get_event_type() to get the event type details.
A return code from wifi_result_t.