Yarilo v0.9.9
WPA2 Decrypter & Packet Analyzer
Loading...
Searching...
No Matches
yarilo::NetlinkCallback Class Reference

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 ()
 

Detailed Description

Netlink socket family callback handler for asynchronous communication.

Constructor & Destructor Documentation

◆ NetlinkCallback()

yarilo::NetlinkCallback::NetlinkCallback ( nl_sock * sock)
inline

A constructor which creates the netlink callback, the message for which this callback is created should be sent beforehand

Parameters
[in]sockactive netlink socket for nl80211

Member Function Documentation

◆ attach()

void yarilo::NetlinkCallback::attach ( nl_recvmsg_msg_cb_t func,
void * arg )

Attach a function to be executed after a message response is received

Parameters
[in]funccallback function to be executed: int (nl_msg *msg, void *arg)
[in]argargument to be passed in to the callback

◆ wait()

int yarilo::NetlinkCallback::wait ( )

Block until the callback finishes execution

Returns
result of the callback, negative values signify errors

The documentation for this class was generated from the following files: