wpa_ctrl_get_fd()
Get the file descriptor for the control connection
Synopsis:
#include <wpa_ctrl.h>
int wpa_ctrl_get_fd(struct wpa_ctrl *ctrl)
Arguments:
- ctrl
- Control connection data from wpa_ctrl_open()
Library:
libwpactrlDescription:
This function gets the file descriptor for the control connection, assuming this connection uses a socket for IPC between the library and underlying service. The returned value can be used with the select() C Library function while waiting for multiple events.
The returned file descriptor must not be used for sending or receiving packets; instead, the library functions wpa_ctrl_request() and wpa_ctrl_recv() must be used for this.
Returns:
The file descriptor of the socket underlying the control connection, or -1 if the connection doesn't use a socket
Page updated: