wpa_ctrl_attach()
Register as an event monitor
Synopsis:
#include <wpa_ctrl.h>
int wpa_ctrl_attach(struct wpa_ctrl *ctrl)
Arguments:
- ctrl
- Control connection data from wpa_ctrl_open()
Library:
libwpactrlDescription:
This function registers the caller as a monitor for WPA control interface events. After a successful wpa_ctrl_attach() call, the control connection starts receiving event messages that can be read with wpa_ctrl_recv().
When you no longer need to receive events, you should unregister with wpa_ctrl_detach(). This other function must be called before closing the connnection with wpa_ctrl_close().
Returns:
- 0
- Success
- -1
- Unknown failure
- -2
- Failure due to timeout
Page updated: