wpa_ctrl_pending()

Updated: April 19, 2023

Check for pending event messages

Synopsis:

#include <wpa_ctrl.h>
int wpa_ctrl_pending(struct wpa_ctrl *ctrl)

Arguments:

ctrl
Control connection data from wpa_ctrl_open()

Library:

libwpactrl

Description:

This function checks whether there are any events available to be received with wpa_ctrl_recv(). It can be used only for event messages, meaning wpa_ctrl_attach() must have been used to register the caller as an event monitor.

Returns:

1
There are event messages
0
There are no event messages
-1
An error occurred