Yarilo v0.9.9
WPA2 Decrypter & Packet Analyzer
|
Netlink socket family callback handler for asynchronous communication. More...
#include <net_card_manager.h>
Public Member Functions | |
NetlinkCallback (nl_sock *sock) | |
void | attach (nl_recvmsg_msg_cb_t func, void *arg) |
int | wait () |
Netlink socket family callback handler for asynchronous communication.
|
inline |
A constructor which creates the netlink callback, the message for which this callback is created should be sent beforehand
[in] | sock | active netlink socket for nl80211 |
void yarilo::NetlinkCallback::attach | ( | nl_recvmsg_msg_cb_t | func, |
void * | arg ) |
Attach a function to be executed after a message response is received
[in] | func | callback function to be executed: int (nl_msg *msg, void *arg) |
[in] | arg | argument to be passed in to the callback |
int yarilo::NetlinkCallback::wait | ( | ) |
Block until the callback finishes execution